HTML and CSS Reference
In-Depth Information
Table 14.1 Style Sheet Properties
Property
Value/Example
Tags Affected
Fonts
font
12pt/14pt sans-serif, 80% sans-serif,
x-large/110% arial, normal small-caps
All
font-family
serif, sans-serif, cursive, fantasy, monospace; or
any specific font typeface name may be used
All
font-size
12pt, larger, 150%, 1.5em
All
font-size-adjust
xx-small, x-small, small, medium, large, x-large,
xx-large, smaller, larger, 12pt, 25%
All
font-stretch
normal, wider, narrower, ultra-condensed,
extra-condensed, condensed, semi-condensed,
semi-expanded, expanded, extra-expanded,
ultra-expanded
All
font-style
normal, italic, oblique
All
font-variant
normal, small-caps
All
font-weight
normal, bold, bolder, lighter,100, 200...900
All
Colors and Background
background-attachment
scroll, fixed
All
background-color
red, blue, #F00, transparent
All
background-image
URL (bay.gif), none
All
background-position
right top, top center, center, bottom, 100% 100%,
0% 0%, 50% 50%
Block-level and
replaced elements
background-repeat
repeat, repeat-x (horizontally), repeat-y
(vertically), no-repeat
All
color
red, green, #F00, rgb(255,0,0)
All
Text Alignment
letter-spacing
normal, 0.1em
All
line-height
normal, 1.2, 1.2em, 120%
All
text-decoration
underline, overline, line-through, blink
All
text-transform
capitalize, uppercase, lowercase, none
All
Continues
 
Search WWH ::




Custom Search