(^612) Appendix C CSS Property Reference
Table C.1Cascading style sheet properties
Property
background-color
Common Values: Valid hexadecimal color value, RGB color value, or color name.
Usage: Configures the background color of an element.
Example: background-color:#cccccc;
background-image
Common Values: URL keyword with valid image file name
Usage: Configures an image file as the background of an element.
Example: background-image:url(myimage.gif);
background-position
Common Values: Two percentages, numeric pixel values, or position values ("left", "top", "center",
"bottom", "right")
Usage: Configures the position of the background image of an element.
Example: background-position:-100px -200px;
The first value configures the horizontal position and the second configures the vertical posi-
tion starting from the upper-left corner of the container’s box. Use negative values for a more
abstract or artistic background effect.
background-repeat
Common Values: "repeat"(default), "repeat-y"(vertical repeat), "repeat-x"(horizontal repeat),
"no-repeat"(no repeat)
Usage: Configures how the background image of an element will repeat (or be prevented from
repeating).
Example: background-repeat:no-repeat;
border
Common Values: The border-width, border-style, andborder-colorvalues separated by spaces.
Usage: Configures the border surrounding an element.
Example: border:1px solid #000000;
border-bottom
Common Values: The border-width, border-style, and border-colorvalues separated by spaces.
Usage: Configures the bottom border of an element.
Example: border-bottom:1px solid #000000;
border-collapse
Common Values: "separate"(default), "collapse"
Usage: Configures the table and cell borders to collapse into a single border or display with separate
borders.
Example: border-collapse:collapse;
border-color
Common Values: Valid hexadecimal color value, RGB color value, or color name
Usage: Configures the color of an element’s border.
Example: border-color:#333333;
steven felgate
(Steven Felgate)
#1