This exercise says that the z-index property does not work on static elements. What is a static element?


#1

Question

This exercise says that the z-index property does not work on static elements. What is a static element?

Answer

In this context, a static element is any element where the default position: static; declaration has not been overwritten. In other words, the z-index property will not take effect on any element where the position property has been not been explicitly defined to some value other than static.