This is my html code which has "box" as main div and then three divs inside it which are positioned left,middle and right respectively.
<div id="box">
<div class="left">Left</div>
<div class="middle">Middle</div>
<div class="right">Right</div>
</div>
And this is my css code
#box {
width:90%;
height:auto;
border:5px solid green;
}
.left {
float:left;
width:30%;
}
.right {
float:right;
width:30%;
}
.middle {
float:left;
width:30%;
}
This is jsfiddle link: http://jsfiddle.net/hep9oLzn/ The border is not wrapping the content.