.parent {
width: 100%;
}
.box {
width: 33.3%;
display: inline-block;
}
body {
margin: 0px;
padding: 0px;
}
<div class="parent">
<div class="box">1</div>
<div class="box">2</div>
<div class="box">3</div>
</div>
now my three divs are not in same line. The div with number 3 goes into new line. Why is that ? I setted the parent to have 100% width, my three divs 33.3% so they should fit inside the 100% width container.
Where is the problem ?