by megaman821 · 15y ago · 0 comments
<ul>
<li>something</li
><li>something else</li
><li>yet another thing</li>
</ul>
This allows you to use display: inline-block. If you put each li on a separate line there will be a single space between the elements.But this advice was intended more generally. If you look at the code, and indeed the full source in the spec[1], you'll see that this is a coding style used for all elements; even elements that will never be rendered. It is ugly as hell, easy to break, and difficult for many people to parse.
That's why I recommended avoiding it.
1: http://www.whatwg.org/specs/web-apps/current-work/#the-secti...