Layering with z-index in CSS


Control the stacking order of positioned elements with z-index.

Source Code

.above {
    position: relative;
    z-index: 2;
}
.below {
    position: relative;
    z-index: 1;
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments