Okay! I while I was fixing up those holes with that technique you mentioned, I've opened up a couple more for myself. But before I go on, here's the CSS:
Code:
body {
margin: 0px;
background: #999999 url('bottom-gradient.png') repeat-x;
background-position: 0 600px;
}
.light-space {
width: 100%;
height: 600px;
background: #cccccc;
position: absolute;
z-index: -3;
}
.top-gradient {
width: 100%;
height: 60px;
background: #999999 url('top-gradient.png') repeat-x;
position: relative;
z-index: -2;
margin-bottom: -60px;
}
.element {
width: 290px;
height: 100%;
background: #999999 url('element.png') no-repeat top;
position: absolute;
top: 0;
left: 50%;
margin-left: -480px;
z-index: -1;
border: 1px solid #000000;
}
.container {
background: #ffffff;
margin: 0 auto;
height: 800px;
width: 730px;
border: 1px solid #000000;
}
And the HTML:
HTML Code:
<div class="light-space"></div>
<div class="element"></div>
<div class="top-gradient"></div>
<div class="container">stuff</div>
The afore-mentioned holes are:
1) The class 'light-space' has a fixed height. That way, if the person's browser window is smaller than 600px, it could potentially create an unnecessary scrollbar. One way to fix this would be to use a percentage height and then max-width: 600px; but that's not supported in IE6! (Curse you IE6!!)
2) The class 'element' will not stretch to the bottom of the window if the page is taller than the browser window.
Do you know how I could fix this? I'm perfectly open to restructuring the whole thing.
Thanks again!
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
Last edited by stevej; 08-15-2009 at 07:13 PM..
|