I understand that absolute positioning disrupts the normal flow of elements, but I expected the display order to reflect the order in which elements are placed in the HTML code.
.absolute
{
position: absolute;
width: 100px;
height: 100px;
background-color: black;
}
.static
{
background-color: red;
height: 20px;
width: 400px;
}
<div>
<div class="absolute"></div>
<div class="static"></div>
</div>
I want to create a sliding menu (the '.absolute' div) that slides from bottom to top and gives the illusion of coming from behind the '.static' div. The container div will need to have 'overflow: visible'.
Is there a way to achieve this effect? Would CSS 'clip' be a better technique to use?