Interactive online courses HTML Academy
2026-03-09 12:23 Diff

Doesn’t it remind you of absolute positioning?

The good old z-index property can be used to position intersecting grid items just like it can be used to arrange absolutely positioned elements.

The higher the z-index, the higher the position of the element in the “stack.” If two elements have the same z-index, then the one that comes next in the markup will be positioned higher.

Let’s check this point in practice.