When the mouse hovers over an element, a hidden div with absolute positioning is displayed. At the bottom of this div, there should be another fixed div.
Take a look at the image to see what I am trying to achieve.
This is the CSS code I have written for this:
CSS
.showpro{position:absolute;z-index:999;width:500px;height:auto;display:none;max-height:500px;}
.bottom{width:500px;position:fixed;bottom:0;left:0;}
CODE
<div class='showpro'>
<div class='top'>
</div>
<div class='bottom'>
</div>
</div>
However, the div appears at the left-bottom corner of the container div with this code. Can anyone explain why this happens and provide assistance?