CSS BACKGROUND-IMAGE

Filed Under: CSS Playground, with 35 views.

The background-image property sets an image as the background.
Tip: Always set a background-color to be used if the image is unavailable.
Inherited: No

Example

body {
background-image: url(stars.gif);
background-color: #000000
}

Possible Values

Value Description
url The path to an image
none No background image
  • Share/Bookmark

Comments:

Leave a Reply