background

All background style properties, such as color, image, origin, and size, as well as the repeat method, are set all at once.

Example

Initial value Initial value of each property defined in the background property
Applies to all element in the page

Syntax

  
background: url("background.png") no-repeat;
  

Values

See background-attachment
See background-clip and background-origin
See background-color
See background-image
See background-position
See background-repeat
See background-size.

Browser support

background112143.51
SVG_image_as_background112499.53.1
background-clip2112229155.1
background-origin2112229155.1
background-size211299215.1
multiple_backgrounds1123.6910.51.3

We use cookies to improve your experience. Learn more in our Privacy policy.

×