- From: Frank Ellermann <nobody@xyzzy.claranet.de>
- Date: Sun, 30 Mar 2008 20:03:18 +0200
- To: public-html-comments@w3.org
Daniel Beardsmore wrote:
> My favourite is this one:
> <ul>
> <li><a href...>Foo</li>
> <li><a href...>Bar</li>
> <li><a href...>Baz</li>
> </ul>
> Now, there's no way to get the list items to butt up against each
> other. For example, if you intend for this:
> [ Foo ][ Bar ][ Baz ]
> The white space will give:
> [ Foo ] [ Bar ] [ Baz ]
> Although all white space between <li>s will normally be dropped, if
> you set li { display: inline } to get them in a horizontal line, now
> you'll get exactly one space between each. The spaces between </li>
> and <li> will collapse to a single, visible space.
Are you sure that that is what happens there ? Do you get a different
result if anything from <ul> to </ul> is written in one line with no
explicit space in the list at all ?
As a practical matter, list items separated by "something", minimally
a space, make sense, don't they ? Especially for your example with
three links, AFAIK adjacent links are supposed to be separated.
Frank
Received on Sunday, 30 March 2008 18:01:42 UTC