Forum Moderators: not2easy

Message Too Old, No Replies

List Spacing Problem

         

chabbs

1:31 pm on Oct 29, 2004 (gmt 0)

10+ Year Member



Hi All,

I am having a problem with the spacing for lists with the Mozilla browser. In IE everthing is cool, but in Mozilla its like there's a <br> in between <li>. I am thinking of resolving this problem with css but I don't seem to find an element that can control the spacing. Can you please suggest a solution for this either in css or html.

dcrombie

1:41 pm on Oct 29, 2004 (gmt 0)



Try setting the line-height on the list items.
(or paste some code so we can see what you're doing)

[edited by: dcrombie at 1:42 pm (utc) on Oct. 29, 2004]

jetboy_70

1:42 pm on Oct 29, 2004 (gmt 0)

10+ Year Member



It's got to be on either the <ul> or <li> elements, unless you have <a>s or similar inside the <li> tags.

Take a look at margin, padding and line-height for starters.

chabbs

2:47 pm on Oct 29, 2004 (gmt 0)

10+ Year Member



Sheeesh, I was trying to find an answer using the list style property that I completely forgot about the line-height property. I added line height to the li selector and now everything is good.

Thanks, I really appreciate the quick response.