Posted by Jukka K. Korpela on 05/28/07 21:20
Scripsit Knut Krueger:
> Is there a way to get the lines (1 and 2) with a <br /> spacing?
There is no such thing as <br /> spacing. The <br> or <br /> means line
break. Browsers often interpret a lone <br> as a request for empty line, but
don't rely on such (mis)behavior.
Just use margin settings in CSS.
> Its working wiht
> <li> line 1</li>
> <br />
> <li> line 2</li>
> buts an error in the validating
Certainly it's an error, since nothing but whitespace is allowed between
<li> elements.
Using <li>line<br></li> would be valid but pointless: no particular effect
is guaranteed, and you can affect vertical spacing more easily in CSS.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
Navigation:
[Reply to this message]
|