Put in order · HTML and CSS course · Module 3: CSS Basics
Stacking Context
Arrange the elements from displayed lowest (at the back) to displayed highest (at the front):
Items to put in order
- Element with position: static (no z-index)
- Element with position: fixed and z-index: 100
- Element with position: absolute and z-index: 10
- Element with position: relative and z-index: 1
You can check the correct answer by solving this task in the CodeWorlds game.