Appendix 271CSS Properties and Values
This table provides a reference to some of the most commonly used CSS properties in
CSS 2.1. In addition to the name of the property, the allowed values have been listed. For a
complete list of CSS properties visit http://www.w3.org/TR/CSS21/propidx.html. For a more
in-depth discussion on how to add custom values, please review Lesson 4: Fundamentals of
HTML, XHTML, and CSS.
Name Possible Values Default value
background-attachment scroll | fi xed |
inheritscrollbackground-color <color> |
transparent |
inherittransparentbackground-image <uri> | none |
inheritnonebackground-position [ [ <percentage>
| <length> | left
| center | right
] [ <percentage>
| <length> | top |
center | bottom ] ]
| [ [ left | center
| right ] || [ top
| center | bottom ]
] | inherit0% 0%background-repeat repeat | repeat-x
| repeat-y | no-
repeat | inheritrepeatbackground [background-color
|| background-
image ||
background-repeat
|| background-
attachment ||
background-
position] | inheritsee individual propertiesborder-collapse collapse | separate
| inheritseparateborder-color [ <color> |
transparent ]{1,4}
| inheritsee individual propertiesborder-spacing <length> <length>?
| inherit0
border-style <border-style>{1,4}
| inheritsee individual propertiesAppendix