you can erase the gap setting font-size to 0 and back to a normal.
http://jsfiddle.net/8YXsQ/3/
.outer-box {
width:200px;
background-color: #ccc;
height:30px;
margin:0;
padding:0;
border:0;
font-size:0;
}
.inner-one {
width:30%;
background-color: yellow;
height:100%;
margin:0;
padding:0;
border:0;
display:inline-block;
font-size:14px;
}
.inner-two {
width:70%;
background-color: green;
height:100%;
margin:0;
padding:0;
border:0;
display:inline-block;
font-size:14px;
}
or remove the space in your html
<div class="outer-box">
<div class="inner-one"></div><!--
--><div class="inner-two"></div>
</div>
or
<div class="outer-box">
<div class="inner-one"></div><div class="inner-two"></div>
</div>
You could use display:table;
too http://jsfiddle.net/8YXsQ/11/
.outer-box {
width:200px;
display:table;
border-collapse:collapse;
}
.inner-one, .inner-two {
display:table-cell;
background:green;
}
.inner-one {
width:30%;
background:yellow;
height:1.2em; /* in case tested with no content */
}