Website Developer Question:

Tell me what Is Z-Index And How Does It Work?

Tweet Share WhatsApp

Answer:

The z-index is a CSS property which defines the stack order of web elements. Higher order elements will appear before any lower order element.

Note – The z-index only applies to the positioned elements. For example, position:absolute, position:relative, or position:fixed.

div {
position: absolute;
left: 10px;
top: 10px;
z-index: -1;
}

Download Website Developer PDF Read All 80 Website Developer Questions
Previous QuestionNext Question
Tell me what Is The Difference Between Undefined Value And Null Value?Explain me what Are Media Queries In CSS3 And Why Do You Use Them?