I have a header (dynamic height) with a fixed position.
I need to place the div container right below the title. Since the header height is dynamic, I cannot use a fixed value for the top margin.
How can I do that?
Here is my CSS:
#header-wrap { position: fixed; height: auto; width: 100%; z-index: 100 } #container{ }
... and HTML:
<div id="header-wrap"> <div id="header"> <div id="menu"> <ul> <li><a href="#" class="active">test 0</a></li> <li><a href="#">Give Me <br />test</a></li> <li><a href="#">My <br />test 2</a></li> <li><a href="#">test 4</a></li> </ul> </div> <div class="clear"> </div> </div> </div> <div id="container"> </div>
jquery html css html5 css3
Sowmya Jun 11 '12 at 6:23 2012-06-11 06:23
source share