HomeReferencesCSS Properties

CSS Property: z-index

Specifies the order of relative or absolutely positioned boxes in the z-axis. The higher the number, the higher that box will be in the stack.

HTML Dog, The Book HTML Dog book cover

HTML Dog is hosted by Titan Internet

Possible Values

  • inherit
  • auto (default)
  • [number]

Example


div { position: absolute; }

#kidkoala { z-index: 2 }

#mrscruff { z-index: 1 }