Craig Zacker - Author, Editor, Networker

10 Minute Guide to HTML Style Sheets

10 Minute Guide to
HTML Style Sheets

by Craig Zacker

Published in February 1997 by Que Corporation

Previous Table of Contents Next


APPENDIX B
Style Sheet Properties Quick Reference

Property Description Values
font Groups font-family, font-size, font-weight, font-style, and line-height properties
font-family Selects the typeface font names
font-size Selects the type size points (pt)
inches (in)
centimeters (cm)
pixels (px)
ems (em)
percentages
xx-large
x-large
large
medium
small
x-small
xx-small
larger
smaller
font-weight Selects type thickness extra-bold
bold
demi-bold
medium
demi-light
light
extra-light
bolder
lighter
font-style Applies special font effects none
italic
oblique
small-caps
text-decoration Applies special font effects that are created in the browser none
effects
underline
overline
line-through
line-height Applies leading points (pt)
inches (in)
centimeters (cm)
pixels (px)
ems (em)
percentages
letter-spacing Adjusts space between letters points (pt)
inches (in)
centimeters (cm)
pixels (px)
ems (em)
percentages
word-spacing Adjusts space between words points (pt)
inches (in)
centimeters (cm)
pixels (px)
ems (em)
percentages
color Applies color to text black
navy
blue
aqua
purple
maroon
green
red
gray
fuchsia
teal
lime
yellow
white
olive
silver
#xxx (hex)
#xxxxxx (hex)
RGB(x,x,x)(dec)
RGB(x,x,x) (%)
background Applies color or image same as above
URL (url)
repeat
no-repeat
repeat-x
repeat-y
fixed
scroll
points (pt)
inches (in)
centimeters (cm)
pixels (px)
ems (em)
percentages
margin Groups values for margin-top, margin-bottom, margin-left, and margin-right
margin-bottom Specifies margin size points (pt)
margin-top inches (in)
margin-left centimeters (cm)
margin-right pixels (px)
ems (em)
percentages
padding Specifies distance points (pt)
between content and inches (in)
border centimeters (cm)
pixels (px)
ems (em)
percentages
border Groups values for border-bottom, border-top, border-left, border-right
border-bottom Specifies border attributes thin
border-top medium
border-left thick
border-right points (pt)
inches (in)
centimeters (cm)
pixels (px)
ems (em)
colors
URL (url)
text-indent Specifies paragraph indent points (pt)
amount
inches (in)
centimeters (cm)
pixels (px)
ems (em)
percentages
text-align Specifies justification left
right
center
justify
text-transform Adjusts text capitalization capitalize
uppercase
lowercase
none