I have 2 float:left div, the first is fixed and i want the second div stretch the remain space.
<div id="container">
<div id="leftform"> </div>
<div id="rightform"> </div>
</div>
Any idea? Thanks
In CSS2:
#container {display:table; table-layout:fixed;}
#leftform, #rightform {display:table-cell;}
#leftform {width:100px;}
In world of IE hacks:
#container {padding-left:100px;}
#leftform {float:left; width:100px; margin-left:-100px;}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With