what does z-index mean in css code example
Example 1: css z-index
/* The z-index CSS property sets the z-order of a positioned element and its
descendants or flex items. Overlapping elements with a larger z-index cover
those with a smaller one. */
/* Keyword value */
z-index: auto;
/* values */
z-index: 0;
z-index: 3;
z-index: 289;
z-index: -1; /* Negative values to lower the priority */
/* Global values */
z-index: inherit;
z-index: initial;
z-index: unset;
Example 2: what is a z index in css
Definition and Usage. The z-index property specifies the stack order of an element. An element with greater stack order is always in front of an element with a lower stack order. Note: z-index only works on positioned elements (position: absolute, position: relative, position: fixed, or position: sticky).
Default value: auto