I have three inline elements (lets call them squares) which are centered inside the parent div. What i would like to do is align first square to the left of the parent, second square to the center and the third square to the right. In other words, create equal inner margins between squares.
Do not forget that inline-block already adds some margin to the elements.
HTML:
<div id="five">
<div>
</div>
<div>
</div>
<div>
</div>
</div>
CSS:
#five {
text-align:center;
width:1110px;
}
#five > div {
width:340px;
background-color:red;
height:200px;
display:inline-block;
}