Sly-Delvecchio Posted November 25, 2008 Share Posted November 25, 2008 Hi Guys, I've had a bit of a problem bugging me, where my subcategories are too close together.The images were spaced but the text looked like all one word.I came up with a bit of a css hack for global.css.Simply add the following to your global.css: #subcategories ul li { float:left; width: 25%; text-align: center; } /* This adds a lovely bit of spacing & centering */ #subcategories ul.inline_list li img{ display:inline; } /* If you don't do this, then the image and text don't line up right */ This over-rides the default ul li class styles by using the subcategories container id "#subcategories".If it's too spaced out, change the width to 20%. I just thought I'd post this in case anybody else shared my experience. Link to comment Share on other sites More sharing options...
weloveperfume.co.uk Posted November 30, 2008 Share Posted November 30, 2008 Thank you, nice little tip and works great :-) Link to comment Share on other sites More sharing options...
vectran Posted November 30, 2008 Share Posted November 30, 2008 Wish I'd seen this two days ago!I just did the same but added: margin-right: 20px; and it seems to work. Link to comment Share on other sites More sharing options...
Bleep Posted January 30, 2009 Share Posted January 30, 2009 Thanks for posting this. It was angering me earlier in the week until I decided to work on something else for awhile. LOL Link to comment Share on other sites More sharing options...
Wade C Posted March 12, 2009 Share Posted March 12, 2009 Works great for me! Thanks!Is there any way to add some spacing to the category listings between the rows?The code above got them spread out nicely left to right, but they are still awfully bunched up up and down.Thanks!Wade Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now