B.2. background

A shorthand property that allows you to set all the background properties of an element with a single property declaration.

Inherited: No

See also: Section B.3background-attachment, Section B.4background-color, Section B.5background-image, Section B.6background-position, and Section B.8background-repeat

B.2.1. Value

You can specify any of the values permitted by the five background- properties, in any order, separated by spaces. The properties you do not specify take on their initial value.

Initial value: none

B.2.2. Compatibility

CSS Version: 1

Is supported by Internet Explorer 4 or later, Netscape 6 or later, Opera 5 or later, and all Mozilla browsers. Is partially supported by Netscape 4.x; however, this support is undocumented ...

Get HTML Utopia: Designing Without Tables Using CSS 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.