CSS Background Properties

2008 Oct 19


Property Values Initial Value Applies to Inherited Percentage
background [ <background-attachment> ||
<background-color> ||
<background-image> ||
<background-position> ||
<background-repeat> ] | inherit
see each
individual property
all elements no  
background-attachment scroll | fixed | inherit scroll all elements no  
background-color <color> | transparent | inherit transparent all elements no  
background-image <uri> | none | inherit none all elements no  
background-position [[<percentage> | <length> | left | center | right] [<percentage>] | <length> | top | center | bottom]?] | [[left | center | right] || [top | center | bottom]] | inherit 0% 0% block-level and replaced elements no refers to corresponding point on element and image origin
background-repeat repeat | repeat-x | repeat-y | no-repeat | inherit no-repeat all elements no