Professional Documents
Culture Documents
Selectors
Boxes
Box Model
All elements
div
<div>
div *
margin x
border-color x
margin-top
border-top-color
margin-right
border-right-color
div span
margin-bottom
border-bottom-color
div, span
margin-left
border-left-color
padding x
border-style x
div + span
padding-top
border-top-style
.class
padding-right
border-right-style
div.class
padding-bottom
border-bottom-style
#itemid
padding-left
border-left-style
div#itemid
border x
border-width x
a[attr]
border-top x
border-top-width
a[attr='x']
border-bottom x
border-right-width
a[class~='x']
border-right x
border-bottom-width
border-left x
border-left-width
containing 'x'
a[lang|='en']
Margin
Visible Area
Height
Border
Width
Padding
Positioning
display
clear
position
z-index
top
Tables
direction +
caption-side +
border-spacing +
:first-child
right
unicode-bidi
table-layout
empty-cells +
:first-line
bottom
overflow
border-collapse +
speak-header +
:first-letter
left
clip
:hover
float
visibility
:active
Active element
:focus
:link
Unvisited links
:visited
Visited links
width
:lang(var)
:before
:after
size
page-break-inside +
marks
page +
min-height
page-break-before
orphans +
min-width
max-height
page-break-after
widows +
Before element
max-width
vertical-align
After element
height
Dimensions
Interface
Color / Background
color +
background-repeat
0 requires no unit
Relative Sizes
em
Paging
background x
background-image
background-color
background-position
background-attachment
ex
Percentage
Absolute Sizes
px
Pixels
cm
Text
cursor +
outline-style
outline x
outline-color
outline-width
Aural
volume +
elevation
speak +
speech-rate
pause x
voice-family
word-spacing +
pause-before
pitch
Centimeters
text-indent +
Text
text-align +
text-transform +
pause-after
pitch-range
mm
Millimeters
text-decoration
white-space +
cue x
stress
in
Inches
text-shadow
line-height +
cue-before
richness
pt
1pt = 1/72in
letter-spacing +
cue-after
speak-punctuation
pc
1pc = 12pt
play-during
speak-numeral
Colours
azimuth +
Fonts
#789abc
#acf
Equates to "#aaccff"
font + x
font-weight +
rgb(0,25,50)
font-family +
font-stretch +
font-style +
font-size +
content
list-style-type +
font-variant +
font-size-adjust +
quotes +
list-style-image +
counter-reset
list-style-position +
counter-increment
marker-offset
Note
Miscellaneous
list-style + x