css 3

Icon

A comprehensive CSS 3 reference guide, tutorial, and blog
Are you a CSS expert? Want to contribute? Contact us

CSS BACKGROUND-IMAGE

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

 

 

Leave a Reply

Pages

Sponsors


CSS3.com



Please help CSS3.com stay alive and running

Bad Behavior has blocked 2318 access attempts in the last 7 days.