content
normal
none
open-quote
close-quote
no-open-quote
no-close-quote
contents
image()
<string>
attr()
<counter>
target-counter()
target-text()
leader()
Applies to ::before
and ::after
pseudo-elements.
auto
currentColor
transparent
>color>
Only applies to certain form and/or UI elements.
stretch
flex-start
flex-end
center
space-between
space-around
normal
baseline
first baseline
last baseline
space-between
space-around
space-evenly
stretch
center
start
end
center safe
center unsafe
The safe
and unsafe
keywords are optional and can be used alongside any alignment keyword.
normal
center
flex-start
flex-end
start
end
self-start
self-end
baseline
first baseline
last baseline
stretch
safe
unsafe
auto
normal
self-start
self-end
flex-start
flex-end
center
baseline
first baseline
last baseline
stretch
safe
unsafe
This is a shorthand property that resets all CSS properties. Value can be one of the following:
initial
inherit
unset
revert
This property affects all properties and so does not have an initial value.
This is a shorthand property. Values represent:
[animation‑name] [animation‑duration] [animation‑timing‑function] [animation‑delay] [animation‑iteration‑count] [animation‑direction] [animation‑fill‑mode] [animation‑play‑state]
The first value parsed as a valid time value is used as "duration", so if you want to include a time value for "delay", you must first declare a duration. Multiple animations are declared using comma-separated value sets.
0s
<time>
Accepts a comma-separated list of delay values to correspond to the animations identified in animation-name and the matching @keyframes
at-rules.
normal
reverse
alternate-reverse
alternate
Accepts a comma-separated list of direction values to correspond to the animations identified in animation-name and the matching @keyframes
at-rules.
0s
<time>
Accepts a comma-separated list of time values to correspond to the animations identified in animation-name and the matching @keyframes
at-rules.
none
forwards
both
backwards
Accepts a comma-separated list of fill mode values to correspond to the animations identified in animation-name
and the matching <@keyframes>
at-rules.
1
infinite
<number>
Accepts a comma-separated list of iteration counts to correspond to the animations identified in animation-name and the matching @keyframes
at-rules.
none
<custom identifier>
Accepts a comma-separated list of animations and must correspond to a name given in any @keyframes
at-rule. The "custom identifier" is chosen similar to how variable or function names are defined in JavaScript. This custom identifier must match an identifier used in an @keyframes
at-rule.
running
paused
Accepts a comma-separated list of play state values to correspond to the animations identified in animation-name and the matching @keyframes
at-rules.
ease
linear
step-start
step-end
ease-in
ease-out
ease-in-out
steps(<integer>)
steps(<integer>, start)
steps(<integer>, end)
steps(<integer>, jump-start)
steps(<integer>, jump-end)
steps(<integer>, jump-none)
steps(<integer>, jump-both)
cubic-bezier(<number>, <number>, <number>, <number>)
Accepts a comma-separated list of timing functions to correspond to the animations identified in animation-name and the matching @keyframes
at-rules. First and third values in the cubic-bezier()
function must be a number between 0 and 1.
none
auto
textfield
menulist-button
searchfield
textarea
push-button
slider-horizontal
checkbox
radio
square-button
menulist
listbox
meter
progress-bar
button
This is normally defined using the vendor-specific -webkit-appearance
. All values starting with searchfield
exist for compatibility of content developed for earlier non-standard versions of this property.
auto
<ratio>
visible
hidden
This is a shorthand property. Values represent:
[background‑color] [background‑image] [background‑repeat] [background‑attachment] [background‑position] / [ background‑size] [background‑origin] [background‑clip]
Multiple backgrounds are defined using comma-separated value sets. If a background color is included in the shorthand with multiple backgrounds, it must be declared last after a comma. If background-size
is included, it's paired with background-position
after a forward slash. If setting both background-origin
and background-clip
, the first value is background-origin
. If one is omitted, both background-origin
and background-clip
are set to the same value.
scroll
fixed
local
If multiple background images are defined, multiple background-attachment
values are declared by comma-separating the values.
normal
multiply
screen
overlay
darken
lighten
color-dodge
color-burn
hard-light
soft-light
difference
exclusion
hue
saturation
color
luminosity
border-box
padding-box
content-box
text
If multiple background images are defined, multiple background-clip
values are declared by comma-separating the values.
transparent
<color-keyword>
<rgb-color>
<rgba-color>
<hsl-color>
<hsla-color>
currentColor
<system-color>
none
url("path/file.png")
<radial-gradient>
<linear-gradient>
<conic-gradient>
<repeating-gradient>
element()
image()
image-set()
cross-fade()
Multiple background images are defined using comma-separated values. URLs can be defined without quotes or with single quotes.
padding-box
border-box
content-box
This property has no effect on background images that have their background-attachment
property set to "fixed".
0% 0%
top
bottom
left
right
center
right bottom
left top
center center
<percentage> <length>
If multiple background images are defined, multiple background-position
values are defined using comma-separated value pairs. Keywords represent horizontal offsets (left, center, right) and vertical offsets (top, center, bottom), and can be mixed and matched.
repeat
no-repeat
space
round
repeat-y
repeat-x
repeat no-repeat
round round
space space
Can be any two space-separated values, representing horizontal repeat and vertical repeat. If multiple background images are defined, multiple background-repeat
values are defined using comma-separated value sets.
auto
auto auto
cover
contain
auto <percentage>
<percentage> <length>
<percentage>
<length> auto
<length> <percentage>
<length>
If two values are included, the first value is the width and the second is the height. If multiple background images are defined, multiple background-size
values are defined using comma-separated value sets.
auto
<length>
<percentage>
max-content
min-content
available
fit-content
<length> border-box
<percentage> content-box
This is a shorthand property. Values represent:
[border‑width] [border‑style] [border‑color]
This shorthand property will reset border-image
values to their initial values.
This is a shorthand property that accepts one to three space-separated values.
[border‑block‑width] [border‑block‑style] [border‑block‑color]
This is a shorthand that accepts one or two space-separated values representing:
<border-block-start-color> <border-block-end-color>
This property depends on writing mode, direction, and text-orientation.
This is a shorthand property that accepts one to three space-separated values.
[border‑block‑end‑width] [border‑block‑end‑style] [border‑block‑end‑color]
This property depends on writing mode, direction, and text-orientation.
This property depends on writing mode, direction, and text-orientation.
none
hidden
dotted
dashed
solid
double
groove
ridge
inset
outset
This property depends on writing mode, direction, and text-orientation.
medium
thin
thick
<length>
This property depends on writing mode, direction, and text-orientation.
This is a shorthand property that accepts one to three space-separated values.
[border‑block‑end‑width] [border‑block‑end‑style] [border‑block‑end‑color]
This property depends on writing mode, direction, and text-orientation.
This property depends on writing mode, direction, and text-orientation.
none
hidden
dotted
dashed
solid
double
groove
ridge
inset
outset
This property depends on writing mode, direction, and text-orientation.
medium
thin
thick
<length>
This property depends on writing mode, direction, and text-orientation.
This is a shorthand that accepts one or two space-separated values representing one of the following two value sets:
[border‑top‑style] [border‑bottom‑style]
[border‑left‑style] [border‑right‑style]
This property depends on writing mode, direction, and text-orientation.
This is a shorthand that accepts one or two space-separated values representing one of the following two value sets:
[border‑top‑width] [border‑bottom‑width]
[border‑left‑width] [border‑right‑width]
This is a shorthand property. Values represent:
[border‑bottom‑width] [border‑bottom‑style] [border‑bottom‑color]
<currentColor>
transparent
<color>
none
solid
ridge
outset
inset
hidden
groove
double
dotted
dashed
medium
thin
thick
<length>
separate
collapse
This is a shorthand property that accepts one to four space-separated values.
[border‑top‑color] [border‑right‑color] [border‑bottom‑color] [border‑left‑color]
When one or more values are omitted, the existing values are applied to the missing ones. In other words, missing value #3 matches existing value #1 and missing value #4 matches existing value #2.
This property accepts one or two space-separated values and depends on writing mode, direction, and text-orientation.
Value types can be mixed and matched.
This property accepts one or two space-separated values and depends on writing mode, direction, and text-orientation.
Value types can be mixed and matched.
This is a shorthand property. Values represent:
[border‑image‑source] [border‑image‑slice] / [border‑image‑width] / [border‑image‑outset] [border‑image‑repeat]
This property accepts one to four space-separated values.
Accepts one or two space-separated values.
stretch
space
round
repeat
space round
stretch repeat
Two values represent horizontal and vertical repeat. Values can be mixed and matched.
Accepts one to four space-separated values.
100%
<number>
<percentage>
<number> fill
<percentage> fill
The fill
keyword cannot be used on its own, it must precede or follow a length or percentage value.
none
url("path/file.png")
<radial-gradient>
<linear-gradient>
<conic-gradient>
<repeating-gradient>
element()
image()
image-set()
cross-fade()
URLs can be defined without quotes or with single quotes.
Accepts one to four space-separated values.
Value types can be mixed and matched.
This is a shorthand property that accepts one to three space-separated values.
[border‑inline‑width] [border‑inline‑style] [border‑inline‑color]
This is a shorthand that accepts one or two space-separated values representing:
[border‑inline‑start‑color] [border‑inline‑end‑color]
This is a shorthand property that accepts one to three space-separated values.
[border‑inline‑end‑width] [border‑inline‑end‑style] [border‑inline‑end‑color]
none
hidden
dotted
dashed
solid
double
groove
ridge
inset
outset
medium
thin
thick
<length>
This is a shorthand property that accepts one to three space-separated values.
[border‑inline‑end‑width] [border‑inline‑end‑style] [border‑inline‑end‑color]
none
hidden
dotted
dashed
solid
double
groove
ridge
inset
outset
medium
thin
thick
<length>
This is a shorthand that accepts one or two space-separated values representing one of the following two value sets:
[border‑top‑style] [border‑bottom‑style]
[border‑left‑style] [border‑right‑style]
This is a shorthand that accepts one or two space-separated values representing one of the following two value sets:
[border‑top‑width] [border‑bottom‑width]
[border‑left‑width] [border‑right‑width]
This is a shorthand property that accepts one to three space-separated values representing:
[border‑width] [border‑style] [border‑color]
<currentColor>
transparent
<color>
none
solid
ridge
outset
inset
hidden
groove
double
dotted
dashed
medium
thin
thick
<length>
This is a shorthand property that accepts one to four space-separated values, followed optionally by another set of one to four space-separated values after a slash.
Value types can be mixed and matched. Values before the slash set the horizontal radii while values after the slash set the vertical radii. If one or more values are omitted in any value set before or after the slash, the existing values are applied to the missing ones. In other words, missing value #3 matches existing value #1 and missing value #4 matches existing value #2.
This is a shorthand property that accepts one to three space-separated values representing:
[border‑right‑width] [border‑right‑style] [border‑right‑color]
<currentColor>
transparent
<color>
none
solid
ridge
outset
inset
hidden
groove
double
dotted
dashed
medium
thin
thick
<length>
Accepts one or two space-separated values.
Applies to table cells. If two values are declared, the first value is the horizontal spacing and second is vertical.
Accepts one or two space-separated values and depends on writing mode, direction, and text-orientation.
Value types can be mixed and matched.
Accepts one or two space-separated values and depends on writing mode, direction, and text-orientation.
Value types can be mixed and matched.
This is a shorthand property that accepts one to four space-separated values.
none
solid
ridge
outset
inset
hidden
groove
double
dotted
dashed
When one or more values are omitted, the existing values are applied to the missing ones. In other words, missing value #3 matches existing value #1 and missing value #4 matches existing value #2.
This is a shorthand property that accepts one to three space-separated values representing:
[border‑top‑width] [border‑top‑style] [border‑top‑color]
<currentColor>
transparent
<color>
none
solid
ridge
outset
inset
hidden
groove
double
dotted
dashed
medium
thin
thick
<length>
This is a shorthand property that accepts one to four space-separated values representing:
[border‑top‑width] [border‑right‑width] [border‑bottom‑width] [border‑left‑width]
auto
<percentage>
<length>
Applies to positioned elements.
slice
clone
none
[h‑offset] [v‑offset] [blur] [spread] <color> inset
The "inset" keyword is optional. The values in square brackets are expressed as <length> values. Multiple shadows are defined by comma-separating value sets.
content-box
border-box
Firefox up to version 50 is the only browser that supports the padding-box
value, which is now deprecated.
auto
avoid
always
all
avoid-page
page
left
right
recto
verso
avoid-column
column
avoid-region
region
Browser support is for Paged Media. For further browser support details see MDN or caniuse.com.
auto
avoid
always
all
avoid-page
page
left
right
recto
verso
avoid-column
column
avoid-region
region
Browser support is for Paged Media. For further browser support details see MDN or caniuse.com.
auto
avoid
avoid-page
avoid-column
avoid-region
Browser support is for Paged Media. For further browser support details see MDN or caniuse.com.
auto
currentColor
<color>
none
left
right
both
inline-start
inline-end
Applies only to absolutely positioned elements. This property is now technically deprecated, replaced by clip-path
, but browsers are required to support it for backwards-compatibility. Some older browsers used commas instead of spaces to separate the length values.
none
<clipPath>
inset()
circle()
ellipse()
polygon()
path()
margin-box
border-box
padding-box
content-box
fill-box
stroke-box
view-box
margin-box inset()
This replaces the now-deprecated clip
property. The clipPath
value is a URL that points to an SVG clipPath. The two-value syntax can mix and match keywords and shape functions.
[ initial value depends on UA ]
currentColor
transparent
<color>
economy
exact
auto
<integer>
Part of CSS multiple columns.
balance
auto
balance-all
Part of CSS multiple columns.
normal
<length>
<percentage>
The legacy grid-column-gap
property is now an alias for this property and has the same browser support.
This is a shorthand property that accepts one to three space-separated values that represent:
[column‑rule‑width] [column‑rule‑style] [column‑rule‑color]
Part of CSS Multi-column module.
[ Initial value depends on UA ]
currentColor
transparent
<color>
Part of CSS Multi-column module.
none
solid
ridge
outset
inset
hidden
groove
double
dotted
dashed
Part of CSS Multi-column module.
medium
thin
thick
<length>
Part of CSS Multi-column module.
none
all
Part of CSS Multi-column module.
auto
<length>
Part of CSS multi-column module.
This is a shorthand property that accepts two space-separated values that represent:
[column‑width] [column‑count]
Part of CSS Multi-column module.
normal
none
open-quote
close-quote
no-open-quote
no-close-quote
contents
image()
<string>
attr()
<counter>
target-counter()
target-text()
leader()
Applies to ::before
and ::after
pseudo-elements.
visible
hidden
auto
Part of CSS counters. The integer value is optional (default is 1).
Part of CSS counters. The integer value is optional (default is 0).
Part of CSS counters. The integer value is optional (default is 0).
May accept a comma-separated list of cursors, beginning with one or more URLs and followed by a single keyword value as a fallback. Hover over the keyword values to see the cursors.
auto
url("path/file.png")
url("path/file.png") <number> <number>
default
none
context-menu
help
pointer
progress
wait
cell
crosshair
text
vertical-text
alias
copy
move
no-drop
not-allowed
grab
grabbing
all-scroll
col-resize
row-resize
n-resize
s-resize
w-resize
ne-resize
nw-resize
se-resize
sw-resize
ew-resize
ns-resize
nesw-resize
nwse-resize
zoom-in
zoom-out
A URL value can take optional x and y <number> coordinates (from 0 to 32).
ltr
rtl
inline
block
inline-block
inline-table
run-in
flow
flow-root
table
flex
grid
ruby
list-item
table-row-group
table-header-group
table-footer-group
table-row
table-cell
table-column-group
table-column
table-caption
ruby-base
ruby-text
ruby-base-container
ruby-text-container
contents
none
inline-flex
inline-grid
Now includes support for two space-separated values that define a display-inside value along with a display-outside value. See MDN and the spec for which values fall into these categories.
show
hide
Applies to table cells.
When using the function values, accepts a space-separated list of one or more functions.
none
url("filters.svg#filter-id");
blur(<length>)
brightness(<percentage>)
contrast(<percentage>)
drop-shadow(<length> <length> <length> <length> <color> inset)
grayscale(<percentage>)
hue-rotate(<angle>)
invert(<percentage>)
opacity(<percentage>)
saturate(<percentage>)
sepia(<percentage>)
contrast(<percentage>) blur(<length>)
The multiple-function syntax can mix and match any functions. The drop-shadow()
function has the same syntax rules as the box-shadow
and text-shadow
properties.
This is a shorthand property that accepts one to three space-separated values representing:
[flex‑grow] [flex‑shrink] [flex‑basis]
none
auto
content
<length>
<percentage>
row
row-reverse
column
column-reverse
This is a shorthand property that accepts one or two space-separated values representing:
[flex‑direction] [flex‑wrap]
0
<number>
1
<number>
nowrap
wrap
wrap-reverse
none
left
right
inline-start
inline-end
block-start
block-end
snap-block
snap-block()
snap-inline
snap-inline()
top
bottom
This is a shorthand property that accepts two mandatory values and five optional values. It also accepts a single keyword value that represents a system font.
[font‑style] [font‑variant] [font‑weight] [font‑stretch] [font‑size] / [line‑height] [font‑family]
caption
icon
menu
message-box
small-caption
status-bar
For info on the order of values, mandatory values, etc., see this cheat sheet.
[ Initial value depends on UA ]
<family-name>
serif
sans-serif
cursive
fantasy
monospace
system-ui
emoji
math
fangsong
ui-serif
ui-sans-serif
ui-monospace
ui-rounded
Font stacks are created by comma-separating font names. A final <generic-family> is recommended in the stack.
Controls advanced typographic features in OpenType fonts. The string value must be exactly four characters.
auto
normal
none
normal
<string>
auto
none
medium
xx-small
x-small
small
large
x-large
xx-large
xxx-large
smaller
larger
<length>
<percentage>
none
<number>
normal
semi-condensed
condensed
extra-condensed
ultra-condensed
semi-expanded
expanded
extra-expanded
ultra-expanded
<percentage>
normal
italic
oblique
oblique <angle>
weight style
none
weight
style
This is a shorthand property that can also accept keywords and function values.
normal
small-caps
all-small-caps
petite-caps
all-petite-caps
unicase
titling-caps
none
[font‑variant‑caps] [font‑variant‑numeric] [font‑variant‑alternates] [font‑variant‑ligatures] [font‑variant‑east‑asian]
normal
unicase
titling-caps
small-caps
petite-caps
all-small-caps
all-petite-caps
normal
jis78
jis83
jis90
jis04
simplified
traditional
full-width
proportional-width
ruby
auto
text
emoji
unicode
normal
none
common-ligatures
no-common-ligatures
discretionary-ligatures
no-discretionary-ligatures
historical-ligatures
no-historical-ligatures
contextual
no-contextual
normal
ordinal
slashed-zero
lining-nums
oldstyle-nums
proportional-nums
tabular-nums
diagonal-fractions
stacked-fractions
normal
sub
super
normal
bold
lighter
bolder
900
800
700
600
500
400
300
200
100
normal
sub
super
auto
line
block
auto
none
This is a shorthand property. Values represent:
[row‑gap] [column‑gap]
The legacy grid-gap
property is now an alias for this property and has the same browser support.
This is a shorthand property that also accepts keywords.
[grid‑template]
[grid‑template‑rows] / auto‑flow [grid‑auto‑columns]
[grid‑template‑rows] / auto‑flow dense [grid‑auto‑columns]
auto‑flow / [grid‑auto‑rows] / [grid‑template‑columns]
This is a shorthand property that can take 1 to 4 values, separated by forward slashes, that represent:
[grid‑row‑start] / [grid‑column‑start] / [grid‑row‑end] / [grid‑column‑end]
auto
min-content
max-content
<percentage>
<length>
<flex length>
minmax(min, max)
fit-content()
Examples using multiple track-size values:
min-content max-content auto;
<length> <length> <length>
<percentage> <percentage>
<flex length> <flex length> <flex length>
minmax(min, max) minmax(min, max) minmax(min, max)
<length> minmax(min, max) <percentage> <flex length> fit-content()
row
column
dense
row dense
column dense
auto
min-content
max-content
<percentage>
<length>
<flex length>
minmax(min, max)
fit-content()
Examples using multiple track-size values:
min-content max-content auto;
<length> <length> <length>
<percentage> <percentage>
<flex length> <flex length> <flex length>
minmax(min, max) minmax(min, max) minmax(min, max)
<length> minmax(min, max) <percentage> <flex length> fit-content()
This is a shorthand property that accepts one or two values, separated by a slash, that represent:
[grid‑column‑start] / [grid‑column‑end]
This is a shorthand property that accepts one or two values, separated by a slash, that represent:
This is a shorthand property that accepts one or two values, separated by a slash, that represent:
[grid‑row‑start] / [grid‑row‑end]
This is a shorthand property. Values represent:
[grid‑template‑columns] [grid‑template‑rows] [grid‑template‑areas]
none
"a b b"
"a c d"
The value must be one or more quoted <string>s, with each string representing a row and each "area" (separated by spaces in a line) representing a column.
none
auto
<length> <flex length>
<custom identifier> <length>
<custom identifier> <length> <custom identifier> <custom identifier>
minmax(min, max)
max-content
min-content
fit-content(<length>)
fit-content(<percentage>)
repeat()
subgrid
masonry
Examples using auto-track-list values:
none
auto
<length> <flex length>
<custom identifier> <length>
<custom identifier> <length> <custom identifier> <custom identifier>
minmax(min, max)
max-content
min-content
fit-content(<length>)
fit-content(<percentage>)
repeat()
subgrid
masonry
Examples using auto-track-list values:
none
first
last
force-end
allow-end
last force-end
first allow-end last
Two or three keywords can be mixed and matched.
auto
<percentage>
<length>
min-content
max-content
fit-content(<percentage>)
fit-content(<length>)
manual
none
auto
Browser support below is for English. For support in other languages, see hyphens on caniuse.com.
auto
smooth
high-quality
crisp-edges
pixelated
1dppx
<resolution>
<resolution> snap
from-image
from-image snap
alphabetic
border-box
ideographic
hebrew
hanging
none
first
all
grid
<length>
<percentage>
auto
<length>
<percentage>
max-content
min-content
available
fit-content
<length> border-box
<percentage> content-box
normal
stretch
This is a shorthand property. Values represent:
[top] [right] [bottom] [left]
This is a shorthand property. Values represent:
[inset‑block‑start] [inset‑block‑end]
auto
<length>
<percentage>
auto
<length>
<percentage>
This is a shorthand property. Values represent:
[inset‑inline‑start] [inset‑inline‑end]
auto
<length>
<percentage>
auto
<length>
<percentage>
auto
isolate
For flexbox:
flex-start
space-between
space-around
flex-end
center
For grid layout:
normal
space-between
space-around
space-evenly
stretch
center
center safe
center unsafe
left
right
baseline
first baseline
last baseline
Part of Box Alignment Module. The safe
and unsafe
keywords are optional and can be used alongside any alignment keyword.
legacy
normal
stretch
left
right
center
legacy left
legacy right
legacy center
baseline
first baseline
last baseline
safe center
unsafe center
start
end
self-start
self-end
flex-start
flex-start
The safe
and unsafe
keywords are optional and can be used alongside any alignment keyword.
auto
normal
stretch
left
right
center
baseline
first baseline
last baseline
safe center
unsafe center
start
end
self-start
self-end
flex-start
flex-start
The safe
and unsafe
keywords are optional and can be used alongside any alignment keyword.
auto
<percentage>
<length>
Applies to positioned elements.
normal
<length>
white
<color>
auto
strict
normal
loose
anywhere
none
<integer>
Browsers are required to support the vendor-specific -webkit-line-clamp
property as an alias for this property.
This is a shorthand property. Values represent:
match-parent
create
normal
<percentage>
<number>
<length>
0
<length>
none
baseline
contain
This is a shorthand property. Values represent:
[list‑style‑position] [list‑style‑image] [list‑style‑type]
none
url("path/file.png")
<radial-gradient>
<linear-gradient>
<conic-gradient>
<repeating-gradient>
outside
inside
disc
none
circle
square
decimal
<string>
symbols()
cjk-decimal
decimal-leading-zero
lower-roman
upper-roman
lower-greek
lower-alpha
lower-latin
upper-alpha
upper-latin
arabic-indic
armenian
bengali
cambodian
cjk-earthly-branch
cjk-heavenly-stem
cjk-ideographic
devanagari
ethiopic-numeric
georgian
gujarati
gurmukhi
hebrew
hiragana
hiragana-iroha
japanese-formal
japanese-informal
kannada
katakana
katakana-iroha
khmer
korean-hangul-formal
korean-hanja-formal
korean-hanja-informal
lao
lower-armenian
malayalam
mongolian
myanmar
oriya
persian
simp-chinese-formal
simp-chinese-informal
tamil
telugu
thai
tibetan
trad-chinese-formal
trad-chinese-informal
upper-armenian
disclosure-open
disclosure-closed
khmer
khmer
khmer
This is a shorthand property. Values represent:
[margin‑top] [margin‑right] [margin‑bottom] [margin‑left]
This is a shorthand property that accepts one to three space-separated values.
[margin‑block‑start] [margin‑block‑end]
This is a shorthand property that accepts one to four space-separated values.
[margin‑top] [margin‑left] [margin‑bottom] [margin‑right]
This is a shorthand property that accepts one to four space-separated values.
[margin‑top] [margin‑left] [margin‑bottom] [margin‑right]
0
auto
<percentage>
<length>
auto
keep
discard
This is a shorthand property that accepts one or two space-separated values.
[margin‑inline‑start] [margin‑inline‑end]
This is a shorthand property that accepts one to four space-separated values.
[margin‑top] [margin‑left] [margin‑bottom] [margin‑right]
This is a shorthand property that accepts one to four space-separated values.
[margin‑top] [margin‑left] [margin‑bottom] [margin‑right]
0
auto
<percentage>
<length>
0
auto
<percentage>
<length>
0
auto
<percentage>
<length>
none
in-flow
all
This is a shorthand property. Values represent:
[mask‑clip] [mask‑composite] [mask‑image] [mask‑mode] [mask‑origin] [mask‑position] [mask‑repeat] [mask‑size]
This is a shorthand property. Values represent:
[mask‑border‑source] [mask‑border‑slice] [mask‑border‑width] [mask‑border‑outset] [mask‑border‑repeat] [mask‑border‑mode]
alpha
luminance
Accepts one or two space-separated values.
stretch
repeat
round
space
stretch space
repeat round
Accepts one to four space separated values and an optional keyword.
none
url("path/file.png")
<radial-gradient>
<linear-gradient>
<conic-gradient>
<repeating-gradient>
element()
image()
image-set()
cross-fade()
Accepts one to four space separated values.
border-box
content-box
padding-box
fill-box
stroke-box
view-box
no-clip
Accepts one or more comma-separated mask-clip layers (i.e. similar to layered multiple backgrounds).
add
subtract
intersect
exclude
Accepts one or more comma-separated mask-composite layers (i.e. similar to layered multiple backgrounds).
none
url("path/file.png")
<radial-gradient>
<linear-gradient>
<conic-gradient>
<repeating-gradient>
element()
image()
image-set()
cross-fade()
Accepts one or more comma-separated mask-image layers (i.e. similar to layered multiple backgrounds).
Accepts one to four space separated values.
match-source
alpha
luminance
Accepts one or more comma-separated mask-mode layers (i.e. similar to layered multiple backgrounds).
border-box
content-box
padding-box
fill-box
stroke-box
view-box
Accepts one or more comma-separated mask-origin layers (i.e. similar to layered multiple backgrounds).
0% 0%
top
bottom
left
right
center
right bottom
left top
center center
<percentage> <length>
Accepts one or more comma-separated mask-position layers (i.e. similar to layered multiple backgrounds).
repeat
no-repeat
space
round
repeat-y
repeat-x
repeat no-repeat
round round
space space
Accepts one or more comma-separated mask-repeat layers (i.e. similar to layered multiple backgrounds).
auto
auto auto
cover
contain
auto <percentage>
<percentage> <length>
<percentage>
<length> auto
<length> <percentage>
<length>
Accepts one or more comma-separated mask-size layers (i.e. similar to layered multiple backgrounds).
luminance
alpha
none
<percentage>
<length>
none
<percentage>
<length>
min-content
max-content
fit-content(<percentage>)
fit-content(<length>)
none
<integer>
none
<percentage>
<length>
min-content
max-content
fit-content(<percentage>)
fit-content(<length>)
auto
<percentage>
<length>
min-content
max-content
fit-content(<percentage>)
fit-content(<length>)
auto
<percentage>
<length>
min-content
max-content
fit-content(<percentage>)
fit-content(<length>)
normal
multiply
screen
overlay
darken
lighten
color-dodge
color-burn
hard-light
soft-light
difference
exclusion
hue
saturation
color
luminosity
fill
none
cover
scale-down
contain scale-down
cover scale-down
50% 50%
top
bottom
left
right
center
right bottom
left top
center center
<percentage> <length>
Keywords represent horizontal offsets (left, center, right) and vertical offsets (top, center, bottom), and can be mixed and matched.
This is a shorthand property. Values represent:
[offset‑position] [offset‑path] [offset‑distance] [offset‑rotate] [offset‑anchor]
auto
top
bottom
left
right
center
right bottom
left top
center center
<percentage> <length>
Keywords represent horizontal offsets (left, center, right) and vertical offsets (top, center, bottom), and can be mixed and matched.
Keywords represent horizontal offsets (left, center, right) and vertical offsets (top, center, bottom), and can be mixed and matched.
none
ray()
path()
url("path/file.svg")
content-box
padding-box
border-box
padding-box
fill-box
stroke-box
view-box
<basic-shape> content-box
<basic-shape> padding-box
<basic-shape> border-box
<basic-shape> fill-box
<basic-shape> stroke-box
<basic-shape> view-box
auto
top
bottom
left
right
center
right bottom
left top
center center
<percentage> <length>
Keywords represent horizontal offsets (left, center, right) and vertical offsets (top, center, bottom), and can be mixed and matched.
auto
reverse
<angle>
Part of CSS paged media.
This is a shorthand property. Values represent:
[outline‑color] [outline‑style] [outline‑width]
currentColor
<color>
invert
Modern browsers do not support the invert
keyword, which is assigned as the initial value in the spec.
0
<length>
none
auto
dotted
dashed
solid
double
groove
ridge
inset
outset
medium
thin
thick
<length>
This is a shorthand property that accepts one or two space separated values representing:
[overflow‑x] [overflow‑y]
auto
none
visible
hidden
clip
scroll
auto
Corresponds to overflow-y
.
0px
<length>
visible
hidden
clip
scroll
auto
Corresponds to overflow-x
.
normal
break-word
anywhere
Deeper browser support is possible by using the alternate syntax word-wrap
.
visible
hidden
clip
scroll
auto
visible
hidden
clip
scroll
auto
This is a shorthand property. Values represent:
[overscroll‑behavior‑x] [overscroll‑behavior‑y]
auto
contain
none
auto
contain
none
auto
contain
none
auto
contain
none
This is a shorthand property that accepts 1 to 4 space-separated values representing:
[padding‑top] [padding‑right] [padding‑bottom] [padding‑left]
This is a shorthand property that accepts one or two space-separated values representing:
[padding‑block‑start] [padding‑block‑end]
This is a shorthand property that accepts one or two space-separated values representing:
[padding‑inline‑start] [padding‑inline‑end]
auto
<custom identifier>
auto
always
avoid
left
right
This property has been replaced by break-after
.
auto
always
avoid
left
right
This property has been replaced by break-before
.
auto
avoid
This property has been replaced by break-inside
.
upright
rotate-left
rotate-right
Can be used only inside an @page
rule.
none
<length>
50% 50%
top
bottom
left
right
center
right bottom
left top
center center
<percentage> <length>
Keywords represent horizontal offsets (left, center, right) and vertical offsets (top, center, bottom), and can be mixed and matched.
This is a shorthand property. Values represent:
[align‑content] [justify‑content]
This is a shorthand property. Values represent:
[align‑items] [justify‑items]
This is a shorthand property. Values represent:
[align‑self] [justify‑self]
auto
none
The spec defines eight other values that apply only to SVG elements.
static
relative
absolute
sticky
fixed
Used along with :before
and :after
pseudo-elements.
none
both
horizontal
vertical
block
inline
Requires the element's overflow
property to be set to something other than visible
, or else must be a replaced element.
auto
<percentage>
<length>
Applies to positioned elements.
normal
<length>
<percentage>
The legacy grid-row-gap
property is now an alias for this property and has the same browser support.
Numbers represent values for the x, y, and z axes.
auto
smooth
This is a shorthand property that accepts one to four space separated values representing:
[scroll‑margin‑top] [scroll‑margin‑right] [scroll‑margin‑bottom] [scroll‑margin‑left]
This is a shorthand property that accepts one or two space separated values representing:
[scroll‑margin‑block‑start] [scroll‑margin‑block‑end]
0
<length>
0
<length>
0
<length>
This is a shorthand property that accepts one or two space separated values representing:
[scroll‑margin‑inline‑start] [scroll‑margin‑inline‑end]
0
<length>
0
<length>
0
<length>
0
<length>
0
<length>
This is a shorthand property that accepts one to four space separated values representing:
[scroll‑padding‑top] [scroll‑padding‑right] [scroll‑padding‑bottom] [scroll‑padding‑left]
This is a shorthand property that accepts one or two space separated values representing:
[scroll‑padding‑block‑start] [scroll‑padding‑block‑end]
This is a shorthand property that accepts one or two space separated values representing:
[scroll‑padding‑inline‑start] [scroll‑padding‑inline‑end]
none
start
end
center
start end
end center
normal
always
none
x
y
block
inline
both
x mandatory
block proximity
The mandatory
and proximity
keywords are optional and can follow any of the other keyword values.
auto
stable
always
stable both force
always both force
auto
thin
none
0
x
<length>
<percentage>
auto
outside-shape
display
inset()
circle()
ellipse()
polygon()
polygon() shape-box
path()
url("path/file.svg")
<radial-gradient>
<linear-gradient>
<conic-gradient>
<repeating-gradient>
none
margin-box
border-box
padding-box
content-box
inset() border-box
inset()
circle()
ellipse()
polygon()
path()
url("path/file.svg")
<radial-gradient>
<linear-gradient>
<conic-gradient>
<repeating-gradient>
Any shape function can be mixed with any *-box keywords.
none
<length>
auto
fixed
Applies to HTML table elements.
start
end
left
right
center
justify
match-parent
justify-all
start
end
left
right
center
justify
match-parent
auto
start
end
left
right
center
justify
match-parent
none
all
digits
digits <integer>
This is a shorthand property. Values represent:
[text‑decoration‑line] [text‑decoration‑thickness] [text‑decoration‑style] [text‑decoration‑color]
none
underline
overline
line-through
blink
underline overline
underline line-through blink
underline overline line-through blink
spelling-error
grammar-error
The first four keywords can be mixed and matched up to four times.
none
auto
solid
double
dotted
dashed
wavy
auto
from-font
<length>
<percentage>
This is a shorthand property. Values represent:
[text‑emphasis‑style] [text‑emphasis‑color]
over right
over all
under right
under all
none
filled
open
dot
circle
double-circle
triangle
sesame
filled circle
open sesame
<string>
The filled
and open
keywords can be used alongside any of the other keywords.
none
start
end
left
right
center
0
<length>
<percentage>
<length> hanging
<length> each-line
<percentage> hanging
<percentage> each-line
<length> hanging each-line
<percentage> hanging each-line
auto
none
inter-word
inter-character
mixed
upright
sideways
clip
ellipsis
<string>
fade
fade(<length>)
fade(<percentage>)
auto
optimizeSpeed
optimizeLegibility
geometricPrecision
This is an SVG property that is also supported in many browsers on HTML elements.
The <length> values are horizontal offset, vertical offset, and blur. Multiple shadows are applied by comma-separating value sets.
auto
none
<percentage>
none
trim-inner
discard-before
discard-after
normal
none
auto
trim-start
space-start
space-first
trim-end
space-end
allow-end
trim-adjacent
space-adjacent
no-compress
ideograph-alpha
ideograph-numeric
punctuation
trim-start space-end trim-adjacent no-compress ideograph-numeric punctuation
Multiple keywords can be mixed and matched, but with some restructions, as in the final line above. See the spec for details.
none
capitalize
uppercase
lowercase
capitalize
full-width
full-size-kana
auto
<length>
<percentage>
auto
from-font
under
left
right
from-font left
from-font right
under left
under right
wrap
nowrap
balance
stable
pretty
auto
<percentage>
<length>
Applies to positioned elements.
auto
none
pan-x
pan-left
pan-right
pan-y
pan-up
pan-down
manipulation
none
matrix()
matrix3d()
translate()
translateX()
translateY()
translate3d()
translateZ()
scale()
scaleX()
scaleY()
scaleZ()
rotate()
rotate3d()
rotateX()
rotateY()
rotateZ()
perspective()
skew()
skewX()
skewY()
Accepts multiple space-separated transform functions.
view-box
content-box
border-box
fill-box
stroke-box
50% 50%
top
right
left
center
bottom
<percentage>
<length>
bottom <percentage> <length>
Can be up to three space-separated values (keywords or values) representing X, Y, and Z offsets.
flat
preserve-3d
Part of 3D transforms.
This is a shorthand property. Values represent:
[transition‑property] [transition‑duration] [transition‑timing‑function] [transition‑delay]
Multiple transitions are defined by comma-separating value sets.
0s
<time>
Multiple delays are defined by comma-separating values.
0s
<time>
Multiple durations are defined by comma-separating values.
all
none
color
color, border-bottom
Can be any valid animatable CSS property. Multiple transition properties are defined by comma-separating values.
ease
linear
step-start
step-end
ease-in
ease-out
ease-in-out
steps(<integer>)
steps(<integer>, start)
steps(<integer>, end)
steps(<integer>, jump-start)
steps(<integer>, jump-end)
steps(<integer>, jump-none)
steps(<integer>, jump-both)
cubic-bezier(<number>, <number>, <number>, <number>)
First and third values in the cubic-bezier()
function must be a number between 0 and 1. Multiple timing functions are defined by comma-separating values.
none
<length>
<percentage>
Accepts one to three space-separated values representing the X, Y, and Z axes.
normal
embed
isolate
bidi-override
isolate-override
plaintext
auto
text
none
contain
all
baseline
top
middle
bottom
sub
super
text-top
text-bottom
<length>
<percentage>
The first four values render differently when applied to table cells.
visible
hidden
collapse
normal
pre
nowrap
pre-wrap
pre-line
Part of CSS paged media.
auto
min-content
max-content
fit-content(<length>)
fit-content(<percentage>)
<percentage>
<length>
auto
scroll-position
contents
transform
top, width
The last two examples above can be any valid animatable CSS property or comma-separated list of properties
normal
keep-all
break-all
break-word
normal
<length>
normal
break-word
This is now an alias for overflow-wrap
but has deeper browser support and doesn't accept the anywhere
keyword value.
auto
avoid
avoid-line
avoid-flex
line
flex
auto
avoid
avoid-line
avoid-flex
line
flex
auto
both
start
end
minimum
maximum
clear
auto
avoid
wrap
none
horizontal-tb
vertical-rl
vertical-lr
sideways-rl
sideways-lr
auto
<integer>
Applies to positioned elements.
<length>
) are linked to the spec, where it describes how they're written.inherit
, initial
, and unset
are omitted to avoid repetition.