backgrounds

background-clip needs three values, but all browsers support only two.

Compatibility

Declaration IE 5.5 IE 6 IE 7 IE8b1 FF 2 FF 3b4 Safari 3.0 Win Opera 9.5b Konqueror 3.5.7
? ? ? ? ?
? ? ? ? ?
? ? ? ? ?
? ? ? ? ?
? ? ? ? ?
? ? ? ? ?

Example

This is the example element we're going to use throughout this page:

It has the following styles; the relevant background-* will be added inline:

div.test {
	background-image: url(/pix/logo_quirksmode.gif);
	border: 5px solid #6374AB;
	padding: 10px;
	width: 200px;
	height: 200px;
}

background-repeat

repeat (default)

repeat-x

repeat-y

no-repeat

space

background-attachment

scroll (default)

Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content

fixed

Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content

local

Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content
Test content

background-clip

border (default)

padding

background-origin

border (default)

padding

content

background-size

auto (default)

-webkit-, -o-

length

-webkit-, -o-

percentage

-webkit-, -o-

round

background-break

continuous (default)

bounding-box

each-box