Please help me get my content div to get an auto height from absolutely positioned element
Posted
by
Justin Hollender
on Stack Overflow
See other posts from Stack Overflow
or by Justin Hollender
Published on 2010-12-28T23:18:01Z
Indexed on
2010/12/28
23:53 UTC
Read the original article
Hit count: 145
css
|css-floating
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.
© Stack Overflow or respective owner