Forums / Templates, Stylesheets, Page Layout / Center Category Title & Description

Center Category Title & Description

Locked

Started by mattymaxx on 16 Jul 2010, 10:30 AM · Views: 1,243

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
16 Jul 2010, 10:30 AM
#1
mattymaxx avatar

mattymaxx

New Zenner

Join Date:
Sep 2005
Posts:
51
Plugin Contributions:
0

Center Category Title & Description

hey guys! just modifying some bits and bobs on this zencart install...

the guys that run it have asked me to center the title, picture & description for category pages....

if you look here:
http://hectorsgarden.co.uk/index.php?main_page=index&cPath=1

ive managed to get the catergory image center, but i cant get the title ("Seeds") or description ("A choice range of seeds for both the beginner & experienced gardener.") center....

tried going thru the css and chaning various codes with no avail! any help wud be really great!

Thanks

Matthew.

16 Jul 2010, 11:54 AM
#2
mattymaxx avatar

mattymaxx

New Zenner

Join Date:
Sep 2005
Posts:
51
Plugin Contributions:
0

Re: Center Category Title & Description

anyone help me with this desperate for this now! :( lol

Cheers
Matthew.

16 Jul 2010, 12:17 PM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Center Category Title & Description

Add to the stylesheet:

#categoryDescription, #indexCategoriesHeading {text-align:center;}

Not all possible ids and classes are in the stylesheet by default.

Install the Firefox browser and the Web Developer plugin for Firefox. You can use those to see where in the stylesheet you change the styling of the various page elements.

Ctrl-Shift-Y will allow you to hover over a section of the page and see the class and id names for that section in the box at the top. The statements in the stylesheet that begin with # are id's and the ones that begin with dots are classes.

Ctrl-Shift-E will open the CSS editor and allow you to edit the stylesheet and see the changes in real time without changing anything permanently. A very handy tool.

16 Jul 2010, 12:22 PM
#4
mattymaxx avatar

mattymaxx

New Zenner

Join Date:
Sep 2005
Posts:
51
Plugin Contributions:
0

Re: Center Category Title & Description

that worked perfectly on 2 ofthe catergories matey but not the "Wild Bird Seed" category?

any ideas? i put in the templates css stylesheet!

16 Jul 2010, 12:26 PM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Center Category Title & Description

Because you don't have any subcategories in that category.

#productListHeading, #indexProductListCatDescription {text-align:center;}

Try that tool I suggested - you'll like it, and you won't have to wait for an answer.

16 Jul 2010, 12:59 PM
#6
mattymaxx avatar

mattymaxx

New Zenner

Join Date:
Sep 2005
Posts:
51
Plugin Contributions:
0

Re: Center Category Title & Description

that sorted my problem buddy!

ill give that plugin a try thankyou!