I may have to alter the structure of DIVs I am using for my webpage layout.
On this page, I have:
<div id="container_slider"></div>
<div id="container_content">
<div id="main">
<div id="header"></div>
<div id="content"></div>
</div>
</div>
<style>
#container_slider {position: absolute; top: 0; z-index: 1;}
#container_content {position: absolute: top: 0; z-index: 10;}
#main {width: 940px; margin: 0 auto;}
#header {width: 170px; float: left;}
#content {width: 760px; float: right;}
</style>
I want #header to display overlaying #container_slider, but I want #content to display vertically beneath #container_slider.
The trouble I have is that the contents of #container_slider is responsive, so the height of #container_slider depends on the browser dimensions.
This means I can't set an accurate padding-top for #content.
Is there a way I can dynamically set #content's padding-top to a value = height(#slider_container) + 10 ?
Or do I need to adjust the way I construct my DIVs?