Given the following HTML:
<!doctype html>
<html>
<body>
<span style="background-color: blue;">
Some text here <br />
Some text here <br />
Some text here <br />
Some text here <br />
</span>
<div style="position: relative; background-color: lightblue;" id="first">
<div style="position: absolute; left: 180px; background-color: green;" id="second">
This is an absolutely positioned div within a div relative to the page.
</div>
</div>
<div style="background-color: red;" id="last">This is now positioned behind.</div>
</body>
</html>
(written for illustration purposes only).
Is there any way to make the flow of the document reset such that the div with id 'last' appears in flow with the rest of the document, after the absolutely positioned div (not behind). Without embedding it inside the divs with ids 'first' or 'second'.
I need to keep the general layout similar to this. But I don't want to have to use javascript to hackily position anything.
Any ideas or something I'm missing?