3 ms·
Inline blocks have other issues, like spaces between the elements messing up the layout.
by dsego 13y ago
Inline blocks have other issues, like spaces between the elements messing up the layout.
- sdegutis 13y agoAre there other issues than the spaces-issue? This one is a non-issue for me, since I use Hiccup[1] for Clojure, which collapses all whitespace for me. [1]: https://github.com/weavejester/hiccup https://github.com/weavejester/hiccup
- unfunco 13y agoIf you're intending to target < IE7 then inline-block only works on elements where the default display type is inline. It's less of an issue now of course, but despite float having certain issues (example: having to use a clear:both with frequency) it's the preferred route. Then again, you might just want to look at a grid system which will handle all the quirks for you.