<div id='container'>
<div class='left'></div>
<div class='right'></div>
<div class='clear'></div>
</div>
If you encounter the scenario above where the floated right
div needs to occupy the remaining height of its parent container without an explicit height being set, how would you tackle this challenge? The height of the parent container is dictated by the floated left
div.
My usual approach involves utilizing Javascript post-loading to adjust heights accordingly. However, I am curious about alternative, standard, and more efficient methodologies for managing this particular layout quirk.
It appears that structuring a layout in this manner inherently raises complications. Are there feasible solutions beyond resorting to using a <table>
?