Community Forums

[SOLVED] Alignment problem in ThemeGlobal

Template support & advice for OpenCart v1.x

[SOLVED] Alignment problem in ThemeGlobal

Postby klaphark » Wed Mar 07, 2012 9:14 pm

Hi,

I have some problems with the alignment with the ThemeGlobal template. I am using version 1.5.1.3. Does anyone know where the problem is and how I should fix it?

Image

Thanks in advance,
Mark

Edit: the forum doesn't seem to show the entire image, so here is the direct link:
http://i42.tinypic.com/j6t0g6.png
Last edited by klaphark on Thu Mar 08, 2012 2:26 pm, edited 1 time in total.
klaphark
 
Posts: 6
Joined: Wed Mar 07, 2012 9:10 pm

Re: Alignment problem in ThemeGlobal

Postby plekter » Wed Mar 07, 2012 10:22 pm

Could you add the link to the site so we could look for source code?
If I understand you right, you want the cocacola picture to start right from the edge of the box without margin from the left?
plekter
 
Posts: 12
Joined: Fri Feb 17, 2012 2:37 am

Re: Alignment problem in ThemeGlobal

Postby klaphark » Wed Mar 07, 2012 10:40 pm

Exactly! And at 'Aanbevolen' you can see the boxes around the images aren't aligned with the 'bestellen' button underneath it. The link is: http://vanilla.x10.mx/index.php?route=common/home

Thanks.
klaphark
 
Posts: 6
Joined: Wed Mar 07, 2012 9:10 pm

Re: Alignment problem in ThemeGlobal

Postby plekter » Wed Mar 07, 2012 11:03 pm

By a quick look, the cocacola banner bug is caused by padding-left: 40px and padding-right: 40px in #content inside stylesheet.css

Fix it by adding the following to your stylesheet:

#banner0
{
margin-left: -40px;
margin-right: -40px;
}


As for the other issue with featured items, I think you can fix it by simply adding:

text-align: center;

to .box-product .image.

NB! I am no CSS master and it could not actually work, so please back the files up before experimenting! :laugh:
plekter
 
Posts: 12
Joined: Fri Feb 17, 2012 2:37 am

Re: Alignment problem in ThemeGlobal

Postby klaphark » Wed Mar 07, 2012 11:16 pm

Thanks! The first problem is solved, but I don't really understand where to put:

text-align: center;

to .box-product .image.

Edit: God, I'm a reading disaster.
Edit2: Doesn't work, any other ideas?
klaphark
 
Posts: 6
Joined: Wed Mar 07, 2012 9:10 pm

Re: Alignment problem in ThemeGlobal

Postby plekter » Thu Mar 08, 2012 6:21 am

The text-align: center; is the magic keyword for centering conten inside block. Maybe try to add it to .box-product div. Hope it helps!
plekter
 
Posts: 12
Joined: Fri Feb 17, 2012 2:37 am

Re: Alignment problem in ThemeGlobal

Postby klaphark » Thu Mar 08, 2012 11:55 am

Tried every possible combination with adding text-align: center; at the general .box lines. Doesn't work.
klaphark
 
Posts: 6
Joined: Wed Mar 07, 2012 9:10 pm

Re: Alignment problem in ThemeGlobal

Postby qahar » Thu Mar 08, 2012 1:17 pm

I check your site but it change to default theme.
My product: Opencart Blog Manager Free System Information
OpencartNews - News, Tutorial n Tips - Common OpenCart Errors and How to Solve Them
Don't forget to add [SOLVED] to your Thread Title (first post), if your issue is solved.
User avatar
qahar
 
Posts: 1647
Joined: Tue Jun 29, 2010 2:24 pm
Location: Indonesia

Re: Alignment problem in ThemeGlobal

Postby klaphark » Thu Mar 08, 2012 2:01 pm

Changed it back to themeblobal
klaphark
 
Posts: 6
Joined: Wed Mar 07, 2012 9:10 pm

Re: Alignment problem in ThemeGlobal

Postby qahar » Thu Mar 08, 2012 2:08 pm

Honestly, the theme developer should assist you for something like this :)

Open stylesheet.css line 725, and add margin:0 auto; :
Code: Select all
.box-product .image img {
    ....
    margin: 0 auto;
}
My product: Opencart Blog Manager Free System Information
OpencartNews - News, Tutorial n Tips - Common OpenCart Errors and How to Solve Them
Don't forget to add [SOLVED] to your Thread Title (first post), if your issue is solved.
User avatar
qahar
 
Posts: 1647
Joined: Tue Jun 29, 2010 2:24 pm
Location: Indonesia

Re: Alignment problem in ThemeGlobal

Postby klaphark » Thu Mar 08, 2012 2:21 pm

It works! Thanks a lot!
klaphark
 
Posts: 6
Joined: Wed Mar 07, 2012 9:10 pm


Return to Template Support

Who is online

Users browsing this forum: No registered users and 9 guests

Hosted by Arvixe Web Hosting