Scripsit Veerle:
Quote:
Originally Posted by
I have a list:
<ul>
<li>Li 1 - blablablablabla</div>
|
You have invalid markup then. If you had posted a URL, we would know
whether the error is on page you tested or in your attempt to copy a
fragment from it.
Quote:
Originally Posted by
When I change the style to:
ul { margin: 0px; padding: 0px; }
li { margin: 0px; padding: 0px; font-family:Arial,Helvetica,sans-
serif; font-size:12px; }
in IE7 there is still some space between the list items.
|
You get 100 minus points for setting font size in pixels and 150
additional minus points for setting it to a grossly small value.
Quote:
Originally Posted by
How can I change the css of the listitems or the list so that these
items are as close to one another as with the divs in IE7?
|
There is no difference if font family and font size are not set. It
appears when _either_ of them is set. This is somewhat weird. I suppose
IE uses some default line height for list items in this case, different
from the overall line height.
Anyway, the problem disappears if I set
* { line-height: 1.25; }
which is a good idea in any case. The specific value should of course be
selected according to the font face, line length, and other relevant
factors.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/