# Background size

*noun*

say it: **“BAK-grownd SYZE”** **/ˈbækˌɡraʊnd saɪz/**

The CSS property that sets how big a background picture is: cover fills the whole box and crops the rest, contain shows the whole picture, and a length sets its width.

## What does `background-size` do?

`background-size` sets how big a background image is. `cover` fills the whole box, cropping if needed.

```css
.hero { background-size: cover; }
```

## In a sentence

- “The photo from my phone was huge, so I set its **background size** to cover and it fit the banner.”

Level: Apprentice · [More CSS terms at this level](https://www.ask-codey.com/glossary?category=css&level=2)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/background-size
