CSS PDF
CSS PDF
Appendix D
Border Styles
Many changes can be made to the style, color, and width of any or all sides of a
border using the border properties listed in Table D–2. Using the border-color, border-
width, or border-style border properties allows you to set the style for all sides of a border.
Using style properties such as border-top-width, border-right-color, or border-bottom-
style gives you the option to set the width, color, or style for only the top, right, bottom,
or left border of a table cell. If you do not make changes to the border style using style
sheet properties, the default border will be displayed.
HTML Appendix D
Table D–2 Border Properties
border-color Sets the color of the four borders; can have from one to [color]
four colors transparent
border-top-color Sets the respective color of the top, right, bottom, and left [color]
border-right-color borders individually
border-bottom-color
border-left-color
border-style Sets the style of the four borders; can have from one to four styles none
dashed
dotted
double
groove
inset
outset
ridge
solid
border-top-style Sets the respective style of the top, right, bottom, and left borders none
border-right-style individually dashed
border-bottom-style dotted
border-left-style double
groove
inset
outset
ridge
solid
border-width Shorthand property for setting the width of the four borders in medium
one declaration; can have from one to four values [length]
thick
thin
border-top-width Sets the respective width of the top, right, bottom, and left medium
border-right-width borders individually [length]
border-bottom-width thick
border-left-width thin
Font Styles
An element’s font can be changed using the font attribute and various font properties.
When you set the font family for an element, you can set one or more fonts or font families
by using a comma-delimited list. Each font family generally includes several font definitions.
For example, the Arial font family includes Arial Black and Arial Narrow. If you specify
more than one font, the browser assesses the user’s system and finds the first font family
installed on the system. If the system has none of the font families specified in the style
sheet, the browser uses the default system font. Table D–3 lists common font properties.
HTML Appendix D
List Styles
Using the properties associated with list styles allows you to set the kind of marker
that identifies a list item. An unnumbered list marker, for example, can be a filled disc, an
empty circle, or a square. A numbered list marker can be a decimal, lower-alpha, lower-
roman numeral, upper-alpha, or upper-roman numeral. Table D–4 provides compatible
browser list properties.
Text Styles
Text styles can be used to change the letter-spacing, alignment, line-height (not
recommended), and text decoration, along with other text properties. The text-transform
property can change text into all uppercase, all lowercase, or be used to change the first
letter of each word to uppercase. With text-align, you can align text left, right, center, or
justify the text. The text style properties are listed in Table D–6.
HTML Appendix D
Table D–6 Text Properties (continued)