Website Developer Question:
Download Job Interview Questions and Answers PDF
Tell me what Is Z-Index And How Does It Work?
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;
}
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 Interview Questions And Answers
PDF
Previous Question | Next 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? |