z-index (CSS2)

Specifies the stacking order of the element relative to other layers. A higher z-index value will place the element above layers with lower z-index values.

Syntax

number | auto | inherit

Examples having uses of: 'z-index'

0 votes
1k views

CSS Layers Overlapping

This example uses "z-index:100" to place an image above the text. Try to change z-index to -1 and see the image fall behind the text.