div boxes on top of other div boxes
Moderator: General Moderators
div boxes on top of other div boxes
Is that possible using relative possitioning?
use nested <div>-tags
If you want to use layers on top of each other use z-index, as suggested above, and play with the visibility, if you need to.
Code: Select all
<div style="blabla" id="myDiv1">
<div style="blabla" id="myDiv2">
</div>
</div>If you look at my site (http://www.mc0.cjb.net) on the far right there is a bar with some options. Under that box are three absolutely positioned div boxes that are invisible. When one of the options on the far right bar is clicked it hides all the other divs that are under the far right bar except for the one that was clicked(such as login). It makes the one that was clicked visible.