Question · HTML and CSS course · Module 3: CSS Basics

How z-index works

With elements having which position setting does z-index work?

Answer options

  • Only with position: static
  • With position relative, absolute, fixed or sticky
  • With every element without exception
  • Only with inline elements

You can check the correct answer by solving this task in the CodeWorlds game.