Escolar Documentos
Profissional Documentos
Cultura Documentos
CHEAT SHEET
BACKGROUNDS
background
background-attachment
background-color
background-image
scroll | fixed
color
background-position
background-break
background-size
background-repeat
transparent
background-color
color
background-attachment
background-clip
background-origin
length
background-clip
background-image
background-color
url
transparent
none
background-origin
border-box | padding-box | content-box
background-repeat
repeat | repeat-x | repeat-y | no-repeat
background-size
background-position
length
x-% y-%
x-pos y-pos
BORDER
border
border-break
background-color
border-width
border-width
color
border-style
border-style
transparent
border-color
color
border-bottom
collapse | separate
border-bottom-width
border-bottom-color
border-style
border-color
border-color
border-left
border-left-width
border-style
border-color
border-left-style
border-style
border-right-color
border-color
border-right-width
thin | medium | thick | length
border-bottom-style
border-style
border-image
image
border-left-color
[ number / %
border-color
border-width
border-left-width
border-right-style
border-style
none
border-right
border-right-width
border-style
border-top
border-top-width
border-color
border-color
border-radius
border-radius
border-top-right-radius
border-width
border-color
color
border-style
border-top-width
border-collapse
close
border-top-color
border-bottom-right-radius
border-color
border-bottom-left-radius
border-top-left-radius
border-top-style
border-style
border-style
box-shadow
border-top-right-radius
length
border-bottom-right-radius
length
none
border-bottom-left-radius
length
BOX MODEL
float
margin-left
marquee-direction
auto
forward | reverse
height
height
marquee-loop
%
auto
infinite
length
margin-right
auto
max-height
marquee-play-count
height
%
none
infinite
integer
length
margin-top
auto
max-width
integer
length
%
marquee-speed
slow | normal | fast
marquee-style
none
scroll | slide | alternate
length
padding
padding-top
overflow
padding-right
padding-bottom
padding-left
overflow-x
min-height
none
length
%
padding-bottom
overflow-y
length
overflow-style
length
padding-left
overflow-x
length
auto
padding-right
overflow-x
length
length
margin
padding-top
margin-top
length
margin-right
min-width
none | inherit
width
margin-bottom
margin-left
margin-bottom
auto
length
%
display
none | inline | block | inline-block |
list-item |run-in | compact | table |
inline-table | table-row-group |
table-header-group |
table-footer-group | table-row |
table-column-group | table-column |
table-cell | table-caption | ruby |
ruby-base | ruby-text |
ruby-base-group | ruby-text-group
rotation
angle
rotation-point
position (paired value off-set)
visibility
visible | hidden | collapse
clear
left | right | both | none
FONT
font
font-family
font-size
font-style
font-variant
font-weight
font-size/line-height
font-family
caption | icon | menu | message-box |
small-caption | status-bar
font-size-adjust
inherit
length
font-style
%
normal | italic | oblique | inherit
font-weight
font-variant
normal | small-caps | inherit
none | inherit
number
TEXT
direction
punctuation-trim
text-emphasis
hanging-punctuation
text-align
text-indent
length
letter spacing
text-align-last
normal
length
%
text-outline
none
color
length
unicode-bidi
normal | embed | bidi-override
white-space
text-decoration
none | underline | overline |
line-thorugh | blink
text-shadow
none
color
length
word-wrap
normal
text-justify
auto | inter-word | inter-ideograph |
inter-cluster | distribute | kashida |
tibetan
text-transform
none | capitalize | uppercase |
lowercase
text-wrap
normal | unresrricted | none |
suppress
word-break
white-space-collapse
length
%
word-spacing
normal
length
%
COLUMN
column-count
column-rule
columns
column-span
auto
column-rule-width
column-width
1 | all
number
column-rule-style
column-count
column-rule-color
column-fill
auto | balance
column-gap
column-width
column-rule-width
auto
column-rule-style
length
border-style
length
normal
length
COLORS
GRID POSTIONING
color
opacity
grid-columns
grid-rows
inherit
inherit
none | inherit
none | inherit
color
number
TEMPLATE LAYOUT
box-align
box-flex-group
box-pack
integer
box-direction
box-lines
box-sizing
normal | reverse
single | multiple
content-box | padding-box |
border-box | margin-box
box-flex
box-orient
normal
tab-side
top | bottom | left | right
TABLE
border-collapse
border-spacing
caption-side
collapse | separate
length length
empty-cells
table-layout
show | hide
auto | fixed
SPEECH
cue
cue-after
caption-side
cue-before
number
rest
cue-before
rest-before
pause
number
pause-before
pause-after
mark
pause-before
mark-before
cue-after
mark-after
time
mark-before
string
phonemes
rest-after
rest-before
none | x-weak | weak | medium |
strong | x-strong | inherit
time
rest-after
none | x-weak | weak | medium |
strong | x-strong | inherit
time
string
mark-after
voice-duration
string
time
voice-pitch-range
voice-family
voice-stress
voice-rate
voice-volume
silent | x-soft | soft | medium | loud | x-loud |
inherit
number
%
voice-pitch
x-low | low | medium | high | x-high | inherit
number
%
speak
none | normal | spell-out | digits |
literal-punctuation | no-punctuation |
inherit-number
SPEECH
cue
cue-after
caption-side
cue-before
number
rest
cue-before
rest-before
pause
number
pause-before
pause-after
mark
pause-before
mark-before
cue-after
mark-after
time
mark-before
string
phonemes
rest-after
rest-before
none | x-weak | weak | medium |
strong | x-strong | inherit
time
rest-after
none | x-weak | weak | medium |
strong | x-strong | inherit
time
string
mark-after
voice-duration
string
time
voice-pitch-range
voice-family
voice-stress
voice-rate
voice-volume
silent | x-soft | soft | medium | loud | x-loud |
inherit
number
%
voice-pitch
x-low | low | medium | high | x-high | inherit
number
%
speak
none | normal | spell-out | digits |
literal-punctuation | no-punctuation |
inherit-number
list-style-image
list-style-type
marker-offset
list-style-type
none
auto
list-style-position
url
list-style-image
length
ANIMATIONS
animations
animation-delay
animation-direction
animation-name
time
normal | alternate
animation-delay
animation-iteration-count
time
inherit
animation-duration
animation-timing-function
animation-delay
number
animation-iteration-count
animation-name
animation-direction
none | IDENT
animation-play-state
running | paused
animation-timing-function
ease | linear | ease-in | ease-out |
ease-in-out | cubic-Bezier (number,
number, number, number)
TRANSITIONS
transitions
transitions-delay
transition-timing-function
transitions-property
time
transitions-duration
transitions-duration
transitions-timing-function
transitions-delay
time
transitions-property
none | all
UI
appearance
cursor
nav-index
nav-down
auto | inherit
number
auto | inherit
<id> [ current | root |
<target-name> ]
nav-up
nav-left
auto | inherit
<id> [current | root |
<target-name> ]
auto | inherit
<id> [ current | root |
<target-name> ]
nav-right
resize
auto | inherit
<id> [ current | root |
<target-name> ]
url
icon
auto | inherit
url
PSEUDO-CLASS
RELATIVE MEASUREMENT
:active
an activated element
ch
width of the "0" glyph found in the font for the font
size used to render
:focus
:visited
a visited link
ex
:hover
:link
an unvisited link
px
:disabled
:enabled
:checked
:selection
vm
:lang
:nth-child(n)
:nth-last child(n)
:first-child
:last-child
:only-child
ANGLES
deg
degrees
grad
grads
rad
radians
turn
turns
TIME
:last-of-type
:first-of-type
ms
milli-seconds
:only-of-type
seconds
:empty
:root
:not(x)
:target
FREQUENCY
Hz
hertz
kHz
kilo-hertz
PSEUDO-ELEMENT
::first-letter
::first-line
::before
::after
COLORS
color name
rgb(x,y,z)
red = rgb(255,0,0)
rgb(x%,y%,z%)
red = rgb(100%,0,0)
rgba(x,y,z,alpha)
red = rgba(255,0,0)
ABSOLUTE MEASUREMENT
#rrggbb
percentage
red=hsl
cm
centimeter
flavor
in
inch
mm
millimeter
currentColor
pc
pt
SELECTOR TYPES
Name
Info
Example
Universal
Any element
Type
h1 { text-decoration: underline; }
Grouping
Class
Id
Descendant
Child
Adjacent Sibling
h1 + p { font-style: italic; }
General Sibling
h1 ~ p { font-style: italic; }
Attribute
OUTLINE
outline
outline-offset
outline-style
outline-width
outline-color
inherit
outline-style
length
length
outline-width
3D / 2D TRANSFORM
backface-visibility
perspective-origin
transform
transform-origin
visible | hidden
[ [ [ percentage> |
<length> | left | center |
right ] [ <percentage> |
<length> | top | center |
bottom ]? ] <length> ] |
[ [ [ left | center | right ] ||
[ top | center | bottom ] ]
<length> ]
[ [ [ <percentage> |
<length> | left | center |
right ] [ <percentage> |
<length> | top | center |
bottom ]? ] <length> ] |
[ [ [ left | center | right ] ||
[ top | center | bottom ] ]
<length> ]
perspective
none
number
transform-style
flat | preserve-3d
GENERATED CONTENT
bookmark-label
counter-reset
hyphenate-lines
marks
content
none
no-limit
attr
identifier number
integer
crop
hyphenate-resource
normal | here
bookmark-level
auto
none
identifier
none
shape
url
display
hyphens
float-offset
image-resolution
none
length length
normal | auto
string
integer
bookmark-target
self
url
attr
border-length
self
hyphenate-after
content
normal | none | inhibit
url
page-policy
start | first | last
quotes
string-set
auto
hyphenate-before
identifier
integer
auto
content-list
counter-increment
integer
none
hyphenate-character
none
identifier number
auto
[<string> <string>]+
url
attr
dpi
move-to
string
text-replace
LINE BOX
alignment-adjust
drop-initial-after-align
drop-initial-size
line-stacking-strategy
alignment-baseline
auto
inline-line-height |
block-line-height |
max-height | grid-height
length
%
drop-initial-after-align
central | middle | after-edge |
text-after-edge | ideographic |
alphabetic | mathematical
%
alignment-baseline
baseline | ise-script | before-edge |
text-before-edge | after-edge |
text-after-edge | central | middle |
ideographic | alphabetic | hanging |
mathematical
drop-initial-before-align
alignment-baseline
drop-initial-before-adjust
before-edge | text-before-edge |
central | middle | hanging |
mathematical
length
exclude-ruby | include-ruby
inline-box-align
initial | last
consider-shifts |
disregard-shifts
line-height
line-stacking
normal
line-stacking-strategy
number
line-stacking-ruby
length
line-stacking-shift
text-height
line-stacking
drop-initial-value
line-stacking-strategy
integer
line-stacking-shift
integer
initial
line-stacking-ruby
line
caps-height
baseline-shift
dominant-baseline
integer
line-stacking-ruby
line-stacking-shift
vertical-align
Baseline | sub | super | top |
text-top | middle | bottom |
text-bottom
length
%
HYPERLINK
target
target-name
target-new
target-position
target-name
target-new
string
target-position
POSITIONING
bottom
clip
left
position
auto
shape
auto
auto
length
top
length
right
auto
z-index
auto
auto
length
number
length
RUBY
ruby-align
ruby-overhang
ruby-position
ruby-span
attr(x) | none
PAGED MEDIA
fit
image-orientation
page-break-after
size
auto
fit-position
angle
page-break-before
page
length
auto
page-break-inside
identifier
orphans
integer
auto | avoid
length
windows
integer