I'm trying to do a top menu with a 1px border. How to have the #mid div
use the full middle width (so that the bottom-border goes close to #right) ?
I'm looking for a solution without flex
, without width: calc(...)
, because it's not supported on some devices I did tests on (legacy support needed).
* { margin:0; padding: 0; }
.left { float:left; width: 155px; height: 60px; border-right: 1px solid #dedede; border-bottom: 1px solid #dedede; }
.mid { float:left; height: 60px; border-bottom: 1px solid #dedede; display:inline-block; }
.right { float: right; width: 40%; height: 60px; border-left: 1px solid #dedede; border-bottom: 1px solid #dedede; }
<div>
<div class="left">aa</div>
<div class="mid">aa</div>
<div class="right">bb</div>
</div>