Let's dive into a little experiment here. I am currently working on a page layout that is quite unique:
<div id="container">
<div id="child1">...</div>
<div is="child2">...</div>
</div>
My goal is to have the appearance of this page change based on whether it is being viewed on screen or when printed, accomplished using media queries. Specifically, for printing, I want #child2
to be displayed on the page prior to #child1
.
Is there a way to switch their positions without needing javascript and avoiding any complicated absolute positioning methods?
Just to clarify, by "prior to" in this scenario, I mean "immediately underneath."