Name
background
Values:
background-color
|background-image
|background-repeat
|background-attachment
|background-position
Example:
BODY { background: silver url(nightsky.gif) no-repeat fixed }
BODY { background: url(oldmap.gif) bottom left }
Applies to:
Block-level elements
Inherited:
Yes
This is a shorthand property for specifying all the individual background properties in a single declaration.
Get Web Design in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.