2 ms·
There is a bit of bad advice in here. You would want to do <ul> <li>something</li ><li>something else</li ><li>yet another thing</li> </ul>
by megaman821 16y ago
There is a bit of bad advice in here. You would want to do
<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.
- davebarrett 16y agoYes, it does. However, there are other, nicer ways of doing this. For example, you could use a comment that is broken over the line. Using tags like that is asking for trouble in editing, particularly if your code is shared. 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-section-element http://www.whatwg.org/specs/web-apps/current-work/#the-secti...