Jump to content

[SOLVED] How to stylise subcategories


rodt

Recommended Posts

Can anyone help me with some code to put a nice border around each subcategory and its link, that displays on the product categories page. (And where the code needs to be inserted).

At the moment the categories wrap around and there is no spacing between each row, as in the attached example showing a category and 6 subcategories.

Thanks,

Rodt

34546_at48sKxDOHZwul1LJdio_t

Link to comment
Share on other sites

Change the following code in the /* category.tpl */ section of css/global.css in your theme's directory:

body#category #subcategories li { margin-right: 10px }



to:

body#category #subcategories li {
  margin-right: 10px;
  margin-bottom: 10px
}

Link to comment
Share on other sites

Brilliant! Thanks Rocky. I've included the change in category.tpl as follows:-

body#category #subcategories li { margin-bottom: 10px }

(I'm using v1.4.0.3).

Attachment shows how there is some nice separation now between the two category rows.

Are you able to help me with showing a border (box) around each subcategory?

Regards (from Tassie!),

Rod

34575_OrbB7kxe0Zqo5a1PLzaF_t

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...