Quote:
Originally Posted by LadynRed
In this case you're going to need absolute positioning for the div you want to place ABOVE the other. Set the 1st div (the bottom one) to position: relative, set the one above it to position:absolute and give it a z-index of 50 or something (you want a higher number, not "2").
|
Sorry to bother you again about this as the other person got it working but I just can't?
My HTML looks like this:
<div id='mainContentBackground'>
<img src="MainContentBackground.gif" height="100%" width="100%"/>
<div id='mainContent'>
<br><br><br><br><br>
</div>
</div>
And my css looks like this:
#mainContentBackground{
position:relative;
height:82%;
width:83%;
float:left;
}
#mainContent{
margin-top:20px;
margin-left:6px;
margin-right:6px;
margin-bottom:6px;
position:absolute;
z-index:50;
height  ;
width:99%;
background-color:#e0ecff;
}
But the mainContent div is still appearing underneath the img?????
If you could help in any way, It would be VERY VERY APPRICIATED!!!
Thank you so much in advance
IrishWMT
|