Is it possible to get a div, inside an absolutely position div, to show above it's parent, but aligned to it so the top of the child div is square with the bottom of the parent div and the child div is now above other parents on the same level as it's own parent ?
e.g I have a page with square blocks on it, say four rows of four. Inside each block, is a child element which shows on rollover, aligned to the bottom of the parent block and over the top of blocks adjacent to the parent block.
The parent blocks are absolutely positioned
<div id="container">
<div class="parent">
Some Box
<div class="child">
Some Child Box
</div>
</div>
<div class="parent" style="left:140px;">
Some Box
<div class="child">
Some Child Box
</div>
</div>
<div class="parent" style="top:140px;">
Some Box
<div class="child">
Some Child Box
</div>
</div>
<div class="parent" style="top:140px; left:140px;">
Some Box
<div class="child">
Some Child Box
</div>
</div>
</div>
#container {
position: relative;
}
.parent {
background: #444;
color: #fff;
display: block;
height: 100px;
padding: 10px;
position: absolute;
width: 100px;
z-index: 2;
}
.child {
background: #777;
display: none;
height: 300px;
position: absolute;
z-index: 3;
}
.parent:hover .child {
display: block;
}