Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
251 Points
55 Posts
Oct 08, 2007 08:28 PM|LINK
sure thing:
html:
<div id="bottom">
<div id="top">stuff in the top</div>
</div>
css:
#bottom{
width: 200px; height: 200px; background-color: black;
}
#top{
width:100px; height:200px; background-color:red;
z-index: 999; <-- the z index property will push the #top div above the bottom div
jjwhite
Member
251 Points
55 Posts
Re: DIV on top of another DIV without absolute positioning ?!
Oct 08, 2007 08:28 PM|LINK
sure thing:
html:
<div id="bottom">
<div id="top">stuff in the top</div>
</div>
css:
#bottom{
width: 200px;
height: 200px;
background-color: black;
}
#top{
width:100px;
height:200px;
background-color:red;
z-index: 999; <-- the z index property will push the #top div above the bottom div
}
My Site