Fully Working inline-block
.inblocks {
position: relative;
font-size: 0px;
*font-size: 0.1px;
}
.inblocks > * {
display: inline-block;
vertical-align: top;
font-size: 12px;
zoom: 1;
*display: inline;
}
Usage:
First condition is that you must set width for each elements in .inblocks.
With first condition in mind, you’ll need to have only same tags as child elements like:
Or you’ll need to have id or a way to differentiate one elements to another like:
<ul>
<li></li>
<li></li>
</ul>
OR
<article>
<h1></h1>
<p></p>
</article>
OR
<div>
<div id=”header”></div>
<div id=”body”></div>
</div>
To mimic float:right, use position: absolute.