I have this seemingly simple problem that has proven somewhat harder to
solve than I'd expected. I've been grappling with this for quite a
while, so any help would be greatly appreciated.
Please have a look:
http://www.thinkdesign.com/amrev-css2/
I have 2 html pages and the stylesheet linked from there.
The problem is that even when I define a z-index for #sections, it still
pushes the other divs down, out of the way.
The page uses the following definition for the floated layer that seems
to be causing the problems:
In CSS
#sections {
float:right;
width:148px;
font-size:0.8em;
text-align:right;
background: #c69;
font-weight: bold;
margin: -23px 0 0 0;
padding: 3px;
}
In HTML I have:
<div id="wrap">
<div id="header">
...
</div>
<div id="nav">
<ul>
<li>
<a href="#">Option 1</a>
</li>
...
...
...
<li>»
<a href="#">Option 6</a>
</li>
</ul>
<div id="sections">
Content in float. <br />
Content in float. <br />
Content in float. <br />
</div>
</div>
<div id="sidebar">
<ul>
<li>
<a title="Register" href="main_page">Register</a>
</li>
...
...
...
</div>
<div id="main">
<h1>Educators</h1> <h3>Teacher resources</h3>
</div>
<div id="footer">
</div>
</div>
Thanks again for your help!