<div style="float:left; width:50%;">
div one
<div style="position:absolute; width:105%">nested element</div>
</div>
<div style="float:left; width:50%;">
div two
</div
In the case where an element exceeds the width of its floated parent, it tends to push down the next element unless applying overflow:hidden
on both floated elements, which is not desirable as it hides the overflowing content. Are there any alternative solutions to prevent this issue?