It controls which element is “on top” visually when they happen to overlap, right? Right. But there is more to the stacking order, much of which you can’t control. You can control stacking contexts though, which kind of reset the playing field within them, but themselves can be stacked. Steven Bradley explains.
DigitalOcean joining forces with CSS-Tricks! Special welcome offer: get $100 of free credit.