Introduction
Z-index helps decide which item appears on top when things overlap on a webpage.
You want a popup to appear above the page content.
You have overlapping images and want to control which one is visible on top.
You want a menu to appear above other page elements.
You want to fix a header so it stays visible above scrolling content.
You want to layer text over a background image clearly.