Why Z-index Is Not Working?
I have this HTML code:
Title goes here
Solution 1:
Just manually set the #right-block
position :
#right-block {
position: relative;
float: right;
background-color: blue;
height: 50px;
z-index: 5;
}
z-index only woks on absolute|relative|fixed
positioned elements, and the default value is for position
is static
.
Post a Comment for "Why Z-index Is Not Working?"