I'm trying to do a CSS selection. I want to select an ID that's before another ID selector. This is the example:
<div id="wrapper">
<div class="aside_left">Left content...</div>
<div class="main_page">Main content...</div>
</div> <!-- end of wrapper -->
My objective is that the main_page
stay on the left, and the aside_left
change its position to the right.
Both the aside_left
and the main_page
have the property float:left
I can't change the aside_left
property to float:right
because it is in many pages.
Is it possible to select the ID or CLASS that is before another ID?
My selector should be something like this: select the .aside_left that are before an .main_page