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.Β













