I have the following CSS code:
#one{
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 999;
}
#two{
position: relative;
z-index: 9;
width: 200px;
height: 200px;
background: red;
}
#link {
position: relative;
z-index: 9999999; /* why is this not on a higher layer? */
}
I cannot increase the z-index of #two
for my design.
Despite assigning a higher z-index to #link
, it's not appearing on a higher layer.
So, why is the fixed position blocking the z-index layering?
If #one was not positioned fixed, it would work fine. Hence, why does the fixed position cause this bug?