ul, li query

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
someberry
Forum Contributor
Posts: 172
Joined: Mon Apr 11, 2005 5:16 am

ul, li query

Post 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.
AngusL
Forum Contributor
Posts: 155
Joined: Fri Aug 20, 2004 4:28 am
Location: Falkirk, Scotland

Post 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
Post Reply