CSS HTML Validator - The fast, all-in-one, HTML, CSS, Link, SEO, spelling, and accessibility checker for Windows, & htmlval for Mac and Linux
Home Help: "background-image" CSS property

The "background-image" CSS Property

This property sets sets the background image(s) of an element.

Values for "background-image"
CSS LevelValue
CSS Backgrounds and Borders Level 3"<bg-image>#" where <bg-image> = "none | <image>"

Notes

  • Images are drawn with the first specified one on top (closest to the user) and each subsequent image behind the previous one.

Recommended Links

Accessibility Information & Tips

  • Use CSS to include decorative images wherever possible. The CSS "background", "background-image", "content", and "list-style-image" properties can be used. This avoids additional markup in the content. Visit https://www.w3.org/TR/WCAG20-TECHS/C9 for more information.

Search Engine Links (for more information)

Help us improve this page: Suggest a link or noteReport a problem