Nah, see the link I cited in post #2. It’s way whitespace is interpreted with display: inline and inline-block, apparently.
will not change the rendering.
It does, actually. If you set the LIs to display:inline-block and put a background color on them, you’ll see a gap between them, which disappears if you remove the whitespace. Quite innereting.
It really is a handy feature, but it seems it wasn’t supported by some browsers for quite a long time, and so many people (including me) have tended to overlook it. Once you realize what it can do for you, you rue the fact that is has had a checkered past.
Well, let’s say I have a list of 100px x 20px buttons.
I display <li>s and <a>s inline-block.
When I change it to “inline” I’m unable to set the right height (and I have to, because I’m using background for the <a> elements), when I display block - it’s not horizontal anymore…
If you float them that will go, but then you might as well remove the inline-block all together. Is there any reason you are using inline-block and not inline or float?