I am re-designing my webpage currently, and I have it set up to have a left-hand sidebar navigation, with main content to the right. I also have it set up, so the stuff on the right can scroll horizontally and in effect goes under the left-hand nav. The left hand stuff is fixed so doesn't move when scrolling.
Now, everything works fine, but the order of the divs in my HTML is backward how I would prefer it.
Currently its like this:
However, for my own internal logic, I would prefer the left hand nav to come first in the HTML document, but this causes the main content area to go over it and not under it.
Is there a simple javascript snippet I can put in to re-order the divs, so I can have the left hand stuff first? Or am I just being unnecessarily picky?
Now, everything works fine, but the order of the divs in my HTML is backward how I would prefer it.
Currently its like this:
Code:
<!-- Main content area -->
<div class=Content>
<div class=Images>image</div>
<div class=Images>image</div>
<div class=Images>image</div>
<div class=Images>image</div>
</div>
<!-- Left Hand Nav -->
<div class=Container>
<div class=side bar>
<div class=nav>stuff</div>
</div>
</div>
However, for my own internal logic, I would prefer the left hand nav to come first in the HTML document, but this causes the main content area to go over it and not under it.
Is there a simple javascript snippet I can put in to re-order the divs, so I can have the left hand stuff first? Or am I just being unnecessarily picky?