Web Review's Style Sheets Re
ference Guide

Revised: Nov. 24, 1997

Basic Concepts
Property
or Value
Windows95 Macintosh
 Nav4  IE3  IE4   Nav4  IE3  IE4 
1.1 Containment in HTML
LINK  BYY  BYY  
<STYLE type="text/css">...</STYLE>  YYY  YYY  
@import  NNY  NNN  
<x STYLE="dec;">  YYY  YYY  
1.2 Grouping
x, y, z {dec;}  YNY  YYY  
1.3 Inheritance
(inherited values)  PYP  BBB  
1.4 Class as selector
.class  BBY  BYY  
1.5 ID as selector
#ID  BBY  BYB  
1.6 Contextual selectors
x y z {dec;}  BYY  PYY  
1.7 Comments
/* comment */  YBY  YYY  
 
Pseudo-Classes and Pseudo-Elements
Property
or Value
Windows95 Macintosh
 Nav4  IE3  IE4   Nav4  IE3  IE4 
2.1 anchor
A:link  YNY  YYY  
A:active  BNY  NYY  
A:visited  NNY  YYY  
2.3 first-line
:first-line  NNN  NBB  
2.4 first-letter
:first-letter  NNN  NBB  
 
The Cascade
Property
or Value
Windows95 Macintosh
 Nav4  IE3  IE4   Nav4  IE3  IE4 
3.1 important
!important  PNY  NNN  
3.2 Cascading Order
Weight sorting  YYY  NNN  
Origin sorting  YYY  BBB  
Specificity sorting  PPY  BPP  
Order sorting  YNY  YBB  
 
Font Properties
Property
or Value
Windows95 Macintosh
 Nav4  IE3  IE4   Nav4  IE3  IE4 
5.2.2 font-family
<family-name>  YYY  YYY  
<generic-family>  YYY  YPP  
... serif  YYY  YYY  
... sans-serif  YYY  YBN  
... cursive  YBY  YNN  
... fantasy  YBY  YNN  
... monospace  YYY  YYY  
5.2.3 font-style
normal  YYY  YNN  
italic  YNY  YYY  
oblique  NNY  NNN  
5.2.4 font-variant
normal  NNY  NNN  
small-caps  NNP  NNN  
5.2.5 font-weight
normal  YNY  YNN  
bold  YYY  YYY  
bolder  YYY  NNY  
lighter  YYY  NNY  
100 - 900  YNY  YNN  
5.2.6 font-size
<absolute-size>  YYY  YYY  
... xx-small - xx-large  YYY  YYY  
<relative-size>  YYY  YNN  
... larger  YYY  YNN  
... smaller  YYY  YNN  
<length>  PPP  PYP  
<percentage>  YYY  YYY  
5.2.7 font
<font-family>  YYY  YPB  
<font-style>  PPY  YPP  
<font-variant>  NNP  NNP  
<font-weight>  YYY  YYP  
<font-size>  YBY  YYB  
<line-height>  YYY  BBY  
 
Color and Background Properties
Property
or Value
Windows95 Macintosh
 Nav4  IE3  IE4   Nav4  IE3  IE4 
5.3.1 color
<color>  YYY  YYY  
5.3.2 background-color
<color>  YBY  YNY  
transparent  YNN  YNY  
5.3.3 background-image
<url>  YNY  YNY  
none  NNN  NNY  
5.3.4 background-repeat
repeat  YNY  YNB  
repeat-x  YNY  YNB  
repeat-y  YNY  YNB  
no-repeat  BNY  YNB  
5.3.5 background-attachment
scroll  NNY  NNY  
fixed  NNY  NNY  
5.3.6 background-position
<percentage>  NNY  NNN  
<length>  NNY  NNN  
top  NNY  NNN  
center  NNY  NNN  
bottom  NNY  NNN  
left  NNY  NNN  
right  NNY  NNN  
5.3.7 background
<background-color>  YYY  YYY  
<background-image>  PYY  YYB  
<background-repeat>  PBY  YBB  
<background-attachment>  PNY  YYB  
<background-position>  NNY  NYN  
 
Text Properties
Property
or Value
Windows95 Macintosh
 Nav4  IE3  IE4   Nav4  IE3  IE4 
5.4.1 word-spacing
normal  NNN  NNN  
<length>  NNN  NNN  
5.4.2 letter-spacing
normal  NNY  NNN  
<length>  NNY  NNN  
5.4.3 text-decoration
none  YNN  YYY  
underline  YYY  YYY  
overline  NNY  NNN  
line-through  YYY  YYY  
blink  YNN  YNN  
5.4.4 vertical-align
baseline  NNN  NNN  
sub  NNY  NNN  
super  NNY  NNN  
top  NNN  NNN  
text-top  NNN  NNN  
middle  NNN  NNN  
bottom  NNN  NNN  
text-bottom  NNN  NNN  
<percentage>  NNN  NNN  
5.4.5 text-transform
capitalize  YNY  YNN  
uppercase  YNY  YNN  
lowercase  YNY  YNN  
none  YNY  YNN  
5.4.6 text-align
left  YYY  YYY  
right  YYY  YYY  
center  YYY  YYY  
justify  YNY  YNN  
5.4.7 text-indent
<length>  YYY  YYY  
<percentage>  YYY  YYY  
5.4.8 line-height
normal  YYY  NYY  
<number>  YNY  YBB  
<length>  PYP  PPB  
<percentage>  YYY  YBB  
 
Box Properties
Property
or Value
Windows95 Macintosh
 Nav4  IE3  IE4   Nav4  IE3  IE4 
5.5.01 margin-top
<length>  YBY  YBB  
<percentage>  YYY  YBY  
auto  YYY  YBY  
5.5.02 margin-right
<length>  YYY  YYY  
<percentage>  YNY  YYY  
auto  YYY  YYY  
5.5.03 margin-bottom
<length>  YNY  YNN  
<percentage>  YNY  YNN  
auto  YNY  YNN  
5.5.04 margin-left
<length>  YYY  YYY  
<percentage>  YYY  YYY  
auto  YYY  YYY  
5.5.05 margin
<length>  YBY  YBB  
<percentage>  YYY  YBB  
auto  YYY  YBY  
5.5.06 padding-top
<length>  YNY  YNN  
<percentage>  YNY  YNN  
5.5.07 padding-right
<length>  YNY  YNN  
<percentage>  YNY  YNN  
5.5.08 padding-bottom
<length>  YNY  YNN  
<percentage>  YNY  YNN  
5.5.09 padding-left
<length>  YNY  YNN  
<percentage>  YNY  YNN  
5.5.10 padding
<length>  YNY  YNN  
<percentage>  YNY  YNN  
5.5.11 border-top-width
thin  YNN  YNN  
medium  YNN  YNN  
thick  YNN  YNN  
<length>  YNN  YNN  
5.5.12 border-right-width
thin  YNN  YNN  
medium  YNN  YNN  
thick  YNN  YNN  
<length>  YNN  YNN  
5.5.13 border-bottom-width
thin  YNN  YNN  
medium  YNN  YNN  
thick  YNN  YNN  
<length>  YNN  YNN  
5.5.14 border-left-width
thin  YNN  YNN  
medium  YNN  YNN  
thick  YNN  YNN  
<length>  YNN  YNN  
5.5.15 border-width
thin  YNN  YNN  
medium  YNN  YNN  
thick  YNN  YNN  
<length>  YNN  YNN  
5.5.16 border-color
<color>  YNY  YNN  
5.5.17 border-style
none  YNN  YNN  
dotted  NNN  NNN  
dashed  NNN  NNN  
solid  YNY  YNN  
double  YNY  YNN  
groove  YNY  YNN  
ridge  YNY  YNN  
inset  YNY  YNN  
outset  YNY  YNN  
5.5.18 border-top
<border-top-width>  NNY  NNN  
<border-style>  NNY  NNN  
<color>  NNY  NNN  
5.5.19 border-right
<border-right-width>  NNY  NNN  
<border-style>  NNY  NNN  
<color>  NNY  NNN  
5.5.20 border-bottom
<border-bottom-width>  NNY  NNN  
<border-style>  NNY  NNN  
<color>  NNY  NNN  
5.5.21 border-left
<border-left-width>  NNY  NNN  
<border-style>  NNY  NNN  
<color>  NNY  NNN  
5.5.22 border
<border-width>  YNY  YNN  
<border-style>  YNY  YNN  
<color>  YNY  YNN  
5.5.23 width
<length>  YNY  PNY  
<percentage>  YNY  PNY  
auto  YNY  PNY  
5.5.24 height
<length>  YNY  PNY  
auto  YNY  PNY  
5.5.25 float
left  YNY  YNY  
right  YNY  YNY  
none  YNY  NNY  
5.5.26 clear
none  YYY  YYY  
left  YNY  YNN  
right  YNY  YNN  
both  YNN  YNN  
 
Classification Properties
Property
or Value
Windows95 Macintosh
 Nav4  IE3  IE4   Nav4  IE3  IE4 
5.6.1 display
block  YNN  PNN  
inline  YNN  NNN  
list-item  YNN  YNN  
none  YNY  YNY  
5.6.2 white-space
normal  YNN  YNN  
pre  YNN  YNN  
nowrap  NNN  NNN  
5.6.3 list-style-type
disc  YNY  YNN  
circle  YNY  YNN  
square  YNY  YNN  
decimal  YNY  YNN  
lower-roman  YNY  YNN  
upper-roman  YNY  YNN  
lower-alpha  YNY  YNN  
upper-alpha  YNY  YNN  
none  NNY  QNN  
5.6.4 list-style-image
<url>  NNY  NNN  
none  NNY  NNN  
5.6.5 list-style-position
inside  NNY  NNN  
outside  NNY  NNN  
5.6.6 list-style
<keyword>  YNY  YNN  
<position>  NNY  NNN  
<url>  NNY  NNN  
 
Units
Property
or Value
Windows95 Macintosh
 Nav4  IE3  IE4   Nav4  IE3  IE4 
6.1 Length Units
em  YNY  YYY  
ex  NNY  YYY  
px  YYY  YYY  
in  YYY  YYY  
cm  YYY  YYY  
mm  YYY  YYY  
pt  YYY  YYY  
pc  YYY  YYY  
6.2 Percentage Units
<percentage>  YYY  YYY  
6.3 Color Units
#000  YYY  YYY  
#000000  YYY  YYY  
(RRR,GGG,BBB)  YNY  YNN  
(R%,G%,B%)  YNY  YNN  
<keyword>  YYY  YYY  
6.4 URLs
<url>  YYY  YPY  


Web Review copyright © 1997 Songline Studios, Inc.
Web Techniques and Web Design and Development copyright © 1997 Miller Freeman, Inc.
ALL RIGHTS RESERVED