Background image
noun
say it: “BAK-grownd IM-ij” /ˈbækˌɡraʊnd ˈɪmɪdʒ/
The CSS property that puts a picture, named with url(), behind an element's content, on top of its background color. It is for pictures that decorate; a picture the reader needs belongs in an img element.
What does background-image do?
background-image puts an image (or a gradient) behind an element's content.
.hero { background-image: url("images/mountains.jpg"); }
In a sentence
- “I gave the menu page a chalkboard background image, so the prices look like they were written in chalk.”
Level: Apprentice · More CSS terms at this level
Updated