5 - 2
outline-color Sets the color of the outline around an
element
color
invert
- 1.5 - 2
outline-style Sets the style of the outline around an
element
none
dotted
dashed
solid
double
groove
ridge
inset
outset
- 1.5 - 2
outline-width Sets the width of the outline around an
element
thin
medium
thick
length
- 1.5 - 2
CSS PROPERTIES 285
PADDING
PROPERTY DESCRIPTION VALUES IE F N W3C
padding A shorthand property for setting all
of the padding properties in one
declaration
padding-top
padding-right
padding-bottom
padding-left
4 1 4 1
padding-bottom Sets the bottom padding of an element length
%
4 1 4 1
padding-left Sets the left padding of an element length
%
4 1 4 1
padding-right Sets the right padding of an element length
%
4 1 4 1
padding-top Sets the top padding of an element length
%
4 1 4 1
POSITIONING
PROPERTY DESCRIPTION VALUES IE F N W3C
bottom Sets how far the bottom edge of an
element is above/below the bottom
edge of the parent element
auto
%
length
5 1 6 2
clip Sets the shape of an element. The
element is clipped into this shape, and
displayed
shape
auto
4 1 6 2
left Sets how far the left edge of an element
is to the right/left of the left edge of the
parent element
auto
%
length
4 1 4 2
over?¬‚ ow Sets what happens if the content of an
element over?¬‚ ow its area
visible
hidden
scroll
auto
4 1 6 2
position Places an element in a static, relative,
absolute, or ?¬? xed position
static
relative
absolute
?¬? xed
4 1 4 2
right Sets how far the right edge of an
element is to the left/right of the right
edge of the parent element
auto
%
length
5 1 6 2
top Sets how far the top edge of an element
is above/below the top edge of the
parent element
auto
%
length
4 1 4 2
(continued on next page)
STYLIN??™ WITH CSS - APPENDIX B 286
POSITIONING (continued)
PROPERTY DESCRIPTION VALUES IE F N W3C
vertical-align Sets the vertical alignment of an
element
baseline
sub
super
top
text-top
middle
bottom
text-bottom
length
%
4 1 4 1
z-index Sets the stack order of an element auto
number
4 1 6 2
TABLE
PROPERTY DESCRIPTION VALUES IE F N W3C
border-collapse Sets whether the table borders are
collapsed into a single border or
detached as in standard HTML
collapse
separate
5 1 7 2
border-spacing Sets the distance that separates cell
borders (only for the ???separated
borders??? model)
length length 5M 1 6 2
caption-side Sets the position of the table caption top
bottom
left
right
5M 1 6 2
empty-cells Sets whether or not to show empty
cells in a table (only for the ???separated
borders??? model)
show
hide
5M 1 6 2
table-layout Sets the algorithm used to display the
table cells, rows, and columns
auto
?¬? xed
5 1 6 2
CSS PROPERTIES 287
TEXT
PROPERTY DESCRIPTION VALUES IE F N W3C
color Sets the color of a text color 3 1 4 1
direction Sets the text direction ltr
rtl
6 1 6 2
line-height Sets the distance between lines normal
number
length
%
4 1 4 1
letter-spacing Increase or decrease the space between
characters
normal
length
4 1 6 1
text-align Aligns the text in an element left
right
center
justify
4 1 4 1
text-decoration Adds decoration to text none
underline
overline
line-through
blink
4 1 4 1
text-indent Indents the ?¬? rst line of text in an
element
length
%
4 1 4 1
text-shadow none
color
length
text-transform Controls the letters in an element none
capitalize
uppercase
lowercase
4 1 4 1
unicode-bidi normal
embed
bidi-override
5 2
white-space Sets how white space inside an element
is handled
normal
pre
nowrap
5 1 4 1
word-spacing Increases or decreases the space
between words
normal
length
6 1 6 1
STYLIN??™ WITH CSS - APPENDIX B 288
PSEUDO-CLASSES
PSEUDO-CLASS PURPOSE IE F N W3C
:active Adds special style to an activated element 4 1 8 1
:focus Adds special style to an element while the
element has focus
- 1.
Pages:
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317