Zen Cart Logo
Forums / General Questions / Need help centering content on main page..

Need help centering content on main page..

Views: 822

Results 1 to 7 of 7
26 Feb 2014, 1:25 AM
#1
wwdetail avatar

wwdetail

New Zenner

Join Date:
Feb 2014
Location:
Canada
Posts:
8
Plugin Contributions:
0

Need help centering content on main page..

I feel like this should be an easy fix, but I'm unable to center to content on my main page.

Page can be seen at www.worxcarcare.com


I want the categories as well as the text to be centered in the main frame in the middle. Like the banner above it.

Running Version 1.5.1

If you need more info to help me fix this issue, I will provide it.

Thanks for looking.

26 Feb 2014, 1:58 AM
#2
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Need help centering content on main page..

the div home-text needs to have its width defined in your stylesheet.css line 271

26 Feb 2014, 3:58 AM
#3
wwdetail avatar

wwdetail

New Zenner

Join Date:
Feb 2014
Location:
Canada
Posts:
8
Plugin Contributions:
0

Re: Need help centering content on main page..

Hey no way! A local Ontarian! Thanks for the reply.

I feel stupid asking this... Is this the correct line of code? What would I put in there for the width? Tried a few things with no result...

#home-text{margin-top:30px;font-size:100%;word-wrap:break-word;}

All help is appreciated.

26 Feb 2014, 4:12 AM
#4
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Need help centering content on main page..

Now's our chance to walk on water and say hello to our friends to the south... no line ups ;)

Yes, add in width: 980px;

26 Feb 2014, 4:35 AM
#5
wwdetail avatar

wwdetail

New Zenner

Join Date:
Feb 2014
Location:
Canada
Posts:
8
Plugin Contributions:
0

Re: Need help centering content on main page..

Great, that worked! Now the only issue left is the categories on the main page not being centered with the content. Any ideas on that one?

Thank you in advance!

26 Feb 2014, 4:48 AM
#6
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Need help centering content on main page..

Try adding **width: 980px; **to #indexCategories or add **width: 980px; **to .centerColumn

.centerColumn is used site wide...

26 Feb 2014, 8:05 PM
#7
wwdetail avatar

wwdetail

New Zenner

Join Date:
Feb 2014
Location:
Canada
Posts:
8
Plugin Contributions:
0

Re: Need help centering content on main page..

Perfect thank you so much. This here worked.

#indexCategories{width:980px;}

Thanks again.