CSS Properties

User Guide / CSS Reference / CSS Properties

background

Syntax

background: background-image || background-position || [ / background-size ]? || background-repeat || background-attachment || background-origin || background-clip || background-color

Default

transparent

Inherited

No

Comments

The background property is a shorthand for setting the following CSS properties:

background-image
background-position
background-size
background-repeat
background-attachment
background-origin
background-clip
background-color