If four inline-block divs of 25% width are put into a container div - the last one always ends up on the next line. If you set the width to 24% - the divs would stay in line, as intended. I tested in latest Chrome
Like here - http://jsfiddle.net/n3aa3/
<div id="c">
<div class="i">hello
</div>
<div class="i">i
</div>
<div class="i">love
</div>
<div class="i">u
</div>
</div>
#c{
background-color:purple;
height:30px;
padding:10px;
}
.i{
border:1px solid white;
display:inline-block;
height:20px;
width:25%;
}
Why? Is the margin between them (who did that margin?) is the reason?