DEV Community

Discussion on: CSS: Overlay Text Over Image

Collapse
haraldson profile image
Hein Haraldson Berg

While understanding z-index is useful in order to understand stacking, I wouldn’t use the z-index CSS property here. Implicit DOM order z-index (later == over) and positioning is all you need to achieve this effect.