background

Syntax

Δ

CSS

background: [<'background-color'> || <'background-image'> || <'background-repeat'> || <'background-attachment'> || <'background-position'>] | inherit

DOM

[window.]document.getElementById("element-id").style.background = "background-attachment background-color background-image background-position background-repeat";
Initial: transparent none repeat scroll 0% 0%
Applies To: all elements
Inherited: no
Percentages: allowed on background-position
Media: visual

Example | background-attachment | fixed

Δ

Example | background-attachment | scroll

Δ

Example | background-color | color

Δ

Example | background-color | transparent

Δ

Example | background-image | none

Δ

Example | background-image | uri

Δ

Example | background-position | bottom

Δ

Example | background-position | center

Δ

Example | background-position | left

Δ

Example | background-position | length

Δ

Example | background-position | percentage

Δ

Example | background-position | right

Δ

Example | background-position | top

Δ

Example | background-repeat | no-repeat

Δ

Example | background-repeat | repeat

Δ

Example | background-repeat | repeat-x

Δ

Example | background-repeat | repeat-y

Δ

Example | DOM | background-attachment

Δ

Example | DOM | background-color

Δ

Example | DOM | background-image

Δ

Example | DOM | background-position

Δ

Example | DOM | background-repeat

Δ

References

Δ