Z-index changes stacking order and creates a stacking context.
z-index applies only to objects that have the position property set to fixed, absolute, or relative, aka "positioned elements".
On positioned elements, can use top/left/right/bottom to nudge element to corners, and z-index.
position: fixed;
position: absolute;
position: relative;
Stacking context is a group of elements with a common parent that move forward or backward together (atomically) in the stacking order.
Stacking context is a subset of DOM.
See the Pen CSS(webkit) filters by Rıza Selçuk Saydam (@rss) on CodePen.
See the Pen Opacity : CSS-Tricks Almanac by Dennis Gaebel (@grayghostvisuals) on CodePen.
See the Pen CSS 3D Transform - Card Flip by Adrian Parr (@adrianparr) on CodePen.
See the Pen pIgBf by Louis Lazaris (@impressivewebs) on CodePen.
See the Pen GLbca by Hugo Giraudel (@HugoGiraudel) on CodePen.