I'm going around in circles trying to figure this out.
HTML/CSS:
<style type='text/css'>
#content {
padding: 20px;
background: #F3F6F7;
}
.inner-box {
background: #fff;
}
.inner-box .col {
background:#eee;
display:block;
float:left;
margin:1%;
padding:20px;
width:23%;
}
</style>
<div id="content">
<div class="inner-box clearfix">
<div class="col col-1">
COl1
</div>
<div class="col col-2">
COl2
</div>
<div class="col col-3">
COl3
</div>
<div class="col col-4">
COl4
</div>
</div>
</div>
I basically want a fluid 4 column layout with an equal bit of padding around each column and the whole thing to span 100% across the screen.
The code above works but as soon as i scale the browser the 4th column on the right will shift down under the rest.