Modern shorthand and layer order
Think in layers like a design file, but implemented directly in CSS.
The `background` shorthand lets you define image, position, size, repeat and fallback in one place. A common pattern is `center / cover no-repeat` for hero-style surfaces.
When you use multiple layers, the first one sits on top. That makes it easy to place a dark gradient overlay above a photo so text remains readable without modifying the original image.
- First layer: painted on top.
- Last layer: often works well as the color fallback.
- `position / size` is clearer when written together.