Please help me get my content div to get an auto height from absolutely positioned element
- by Justin Hollender
I need some help with a CSS layout. It is set up like this:
+--------------------+
| | | header |
|-| |--------------|
| |nav| content |
| | | |
| | | |
| | | |
| footer |
+--------------------+
So, the nav is supposed to be floating above all the main page content. That's why I have it set to be absolutely positioned. The issue is that the nav items are dynamic, without a set height. Right now, the nav expands past the content. How can I fix it so that the content will have an auto height based off the nav?
Thanks in advance.