I need two div boxes: one at left side with fixed width, and other on the right side of first and it should stretch to right side. How to do this?
/-- 30px --//------ * -------/
| | |
| | |
<div style="left:0;width:30px;"></div>
<div style="left:30px;right:0;"></div>
You may need to make them absolute positioned and the parent relative.
Better not to use absolute position, since you may want to place it within other elements. That's what works for me:
<div>
<div style="float: left; width: 30px">1</div>
<div>2</div>
</div>
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