Background image

Puts an image or gradient behind an element's content.

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"); }

Level: Apprentice · More CSS terms at this level

Updated