CSS background-size Property Explained
What the CSS background-size property does, with an example.
Published November 6, 2026
The CSS background-size property controls the size of a background image within its element.
Key points
- Check browser compatibility on a resource like caniuse.com if targeting older browsers
Example
background-size: cover;