I'm attempting to switch the positions of two div
s for responsive design (the website appearance changes based on browser width, ideal for mobile).
Currently, my setup looks like this:
<div id="first_div"></div>
<div id="second_div"></div>
Is it possible to change their order so that it appears as if second_div
comes before first_div
, using CSS only? The HTML structure must remain unchanged. I've experimented with floats and other methods, but haven't achieved the desired outcome. I prefer not to use absolute positioning due to varying heights of the div
s. Are there solutions available, or is this task impossible to accomplish?