Skip to Content


CSS Reference / background

background

A shorthand property for setting all background properties in one declaration.

Values:

Examples:

  1. background: #fff;
  2. background: #fff url(img.gif);
  3. background: #fff url(img.gif) repeat-x;
  4. background: #fff url(img.gif) repeat-x fixed;
  5. background: #fff url(img.gif) no-repeat fixed 10px 50%;

Browser support:

  • Internet Explorer 3+
  • Netscape 4+
  • Opera 3.6+

Related properties:

back to list



Search

Sponsors

Logo design for $149

Advertise here