I am positioning main-bar
and side-bar
with 70-30
ratio as under: JSFIDDLE
This is because the white space in-between your inline-block elements you need make them 0
using the font-size
property just as follows
body{
font-size: 0;
}
.main-bar, .side-bar{
position: relative;
margin:0; padding: 0;
outline: 0;
display: inline-block;
font-size: 14px;
border:none;
background:#CCC
}
.main-bar{width: 70%}
.side-bar{width: 30%}
Working Fiddle