CSS HTML div order ?
- Started
- Last post
- 6 Responses
- xrusos
why does it matter what order the divs are on the html page?
see this example:
http://nebogroup.com/v3/test.htm…notice that the right column is in line with the left column (both aligned to the top).
now check this out:
http://nebogroup.com/v3/test2.ht…ahh, see that? the only difference between the code is that i put the "nav" div after the "content" div.
SO... what can i do to keep the nav div after the content div, but still get them to line up at the top?
Why do this? I'm making a site with a main div and a supplementary content div, and it doesn't make sense to have the sup content go above the main content in the html (for search engines, ease of editing, and otherwise).
what'd'ya think?
- xrusos0
anyone?
- zanetate0
Have you tried using absolute positioning for the nav instead of floating it right? That would probably help.
- gabriel_pc0
set the float of the "content" div to left. That should fix it.
- xrusos0
nope. float left doesn't work. and i've played around with a bunch of absolute position ideas - none of which worked.
can anyone show me it works?
if copy the html, it has the css in it so you can edit yourself.