Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Inline-block layout component
<div class="ibw">
<div class="ib">inline block</div>
<div class="ib">inline block</div>
<div class="ib">inline block</div>
</div>
.ibw {
word-spacing: -1em; /* hide whitespace between elements if separated by whitespace in the source */
}
.ibw .ib {
display: -moz-inline-box; /* FF2 or lower */
display: inline-block;
word-spacing: normal;
vertical-align: top;
/* IE6/7 inline-block hack */
*display: inline;
*zoom: 1;
}
@malachi358

This comment has been minimized.

Copy link

@malachi358 malachi358 commented Dec 25, 2013

Great work man, thanks for sharing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment