I have an inline div abc
and another inline div def
. abc
's width is 100px. How can I let def
appear on the right while def
's width is its parent's width minus 100px?
I cannot do width:100%; since def
would appears next line.
https://jsfiddle.net/h7k87vwx/
<div class="abc">abc</div>
<div class="def">def</div>
<div class="ghi">ghi</div>
.abc {
display:inline-block;
background-color:lightblue;
width: 100px;
}
.def {
display:inline-block;
background-color: lightyellow;
width: 200px;
}