I want to align 3 sections in one line: one left, one in center and one on right. How can I do that?
<div id="container">
<div class="div1"></div>
<div class="div2"></div>
<div class="div3"></div>
</div>
css:
#container{
border:1px solid #ff0000;
width: 100%;
display: inline-block;
height:auto;
}
.div1{background: lime;border: 1px solid #ccc;width:100px;height: 100px; float: left}
.div2{background: yellow;border: 1px solid #ccc;width:100px;height: 100px; float:left}
.div3{background: orange;border: 1px solid #ccc;width:100px;height: 100px; float: right}
fiddle: http://jsfiddle.net/ux4DD/164/