Background position
noun
say it: “BAK-grownd puh-ZISH-un” /ˈbækˌɡraʊnd pəˈzɪʃən/
The CSS property that sets where a background picture sits in its box, with words such as left, center, right, top and bottom, or with lengths.
What does background-position do?
background-position sets where a background image sits inside the element.
.hero { background-position: center top; }
In a sentence
- “I changed the background position to center top, so the truck's window stayed in view when the photo was cropped.”
Level: Apprentice · More CSS terms at this level
Updated