Essentially I have one div, that holds four divs which all have float: left apart from the last one it has float: right.
I am building a responsive web page. I would like basically all three columns apart of the column "Name" to take up all the width they need. The remainder of the width should go into that column - if that makes sense.
<div style="width: 100%; border-bottom: 1px solid #e5e5e5; padding: 10px 0 10px; font-size: 1.2em; overflow: auto;">
<div style="float: left; width: 5%;"><input type="checkbox" id="ID"></div>
<div style="float: left; width: 5%;">Code</div>
<div style="float: left; width: 80%;">Name</div>
<div style="float: right; width: 10%;">100 €</div>
</div>
Found the solution!
I found the solution! Removing the float and adding overflow hidden on the column that should adjust helped to get what I needed!
<div style="width: 100%; border-bottom: 1px solid #e5e5e5; padding: 10px 0 10px; font-size: 1.2em; overflow: auto;">
<div style="float: left; width: auto; margin-right: 1%;"><input type="checkbox" id="ID"></div>
<div style="float: left; width: auto; margin-right: 3%;">Code</div>
<div style="float: right; width: auto; margin-left: 3%;">100 €</div>
<div style="overflow: hidden;">Name></div>
</div>