Page 1 of 1

ul, li query

Posted: Wed Aug 17, 2005 8:53 am
by someberry
I am having a few problems making my layout completely CSS driven. I have made the menu system using <ul>'s and <li>'s, and over the different browsers, the spacing is slightly different. For example:

Using the Gecko engine (Firefox, Netscape):

Code: Select all

o    Link
o    Link
o    Link
o    Link
Using IE and Opera, the links have the correct spacing I want:

Code: Select all

o Link
o Link
o Link
o Link
Is anyone aware of the CSS that I need to set the space between the <li>, and the anchor/text?

Thanks,
Someberry.

Posted: Mon Aug 22, 2005 9:38 am
by AngusL
I don't use lists a lot, but a brief check confirms that

Code: Select all

li {padding-left:0px}
may well be what you're looking for.

EDIT: Removed space that works only in IE. :P