content
normalnoneopen-quoteclose-quoteno-open-quoteno-close-quoteattr(<identifier><string><url><counter>icon
<length>) are linked to the spec, where it describes how they're written.inherit keyword as a value, but it is omitted to avoid needless repetition.This is a shorthand property that resets all CSS properties. Value can be one of the following:
initialdefaultThis is a shorthand property. Values represent:
[animation-name] [animation-duration] [animation-timing-function] [animation-delay] [animation-iteration-count] [animation-direction] [animation-fill-mode]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.
ltrrtlnormalreversealternatealternate-reverseAccepts 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.
noneforwardsbackwardsbothAccepts a comma-separated list of fill mode values to correspond to the animations identified in animation-name and the matching @keyframes at-rules.
1infinite<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 by the developer, similar to how variable or function names are defined in JavaScript. This custom identifier must match an identifier used in an @keyframes at-rule.
easeeaselinearease-inease-outease-in-outstep-startstep-endsteps(<number>, start)steps(<number>, end)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.
runningpausedAccepts a comma-separated list of play state values to correspond to the animations identified in animation-name and the matching @keyframes at-rules.
visiblehiddencollapsevisiblehiddenThis is a shorthand property. Values represent:
[background-color] [background-image] [background-repeat] [background-attachment] [background-position] / [ background-size] [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.
scrollfixedlocalIf multiple background images are defined, multiple background-attachment values are declared by comma-separating the values.
[ initial value depends on the user agent ]<color>transparent<color>Applies only to absolutely positioned elements. The lengths can also be <percentage>.
border-boxpadding-boxcontent-boxIf multiple background images are defined, multiple background-clip values are declared by comma-separating the values.
noneurl("path/file.png")<linear-gradient><radial-gradient><repeating-gradient><image-function>Multiple background images are defined using comma-separated values. URLs can be defined without quotes.
border-boxpadding-boxcontent-boxThis property has no effect on background images that have their background-attachment property set to "fixed".
staticrelativeabsolutefixedcenterpage0% 0%<percentage> <length>left topcenter centerright bottomIf multiple background images are defined, multiple background-position values are defined using comma-separated value pairs. Keywords represent horizontal (left, center, right) and vertical (top, center, bottom) offsets, and can be mixed and matched.
repeatrepeat-xrepeat-yno-repeatspaceroundrepeat no-repeatCan 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.
autocovercontain<length><percentage><length> autoauto <percentage><length> <percentage><percentage> <length>If two values are included, the first value is the width and the second is the height.
This is a shorthand property. Values represent:
[border-width] [border-style] [border-color]collapseseparateThis is a shorthand property that accepts one to four values.
<currentColor><color>transparentWhen 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.
auto<length><percentage>Applies to positioned elements.
This is a shorthand property. Values represent:
[border-width] [border-style] [border-color]<currentColor><color>transparentauto<length><percentage>Applies to positioned elements.
This is a shorthand property. Values represent:
[border-width] [border-style] [border-color]<currentColor><color>transparentauto<length><percentage>Applies to positioned elements.
This is a shorthand property. Values represent:
[border-width] [border-style] [border-color]<currentColor><color>transparentauto<length><percentage>Applies to positioned elements.
This is a shorthand property. Values represent:
[border-width] [border-style] [border-color]<currentColor><color>transparentThis is a shorthand property.
Length values can be mixed with percentages. If 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. Values represent:
[border-image-source] [border-image-slice] / [border-image-width] [border-image-width] / [border-image-outset] [border-image-repeat]noneurl("path/file.png")100%[ Up to four space-separated <number> or <percentage> values; the optional 'fill' keyword can be included after the other values are declared ]auto<length><percentage>1[ Up to four space-separated <length>, <percentage>, or <number> values for top, right, bottom, and left; one or more values can be 'auto' ]stretchrepeatroundspaceCan be two space-separated values representing horizontal and vertical repeating.
Applies to table cells. If two values are declared, the first value is the horizontal spacing and second is vertical.
This is a shorthand property that accepts one to four values.
nonehiddendotteddashedsoliddoublegrooveridgeinsetoutsetWhen 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.
nonehiddendotteddashedsoliddoublegrooveridgeinsetoutsetnonehiddendotteddashedsoliddoublegrooveridgeinsetoutsetnonehiddendotteddashedsoliddoublegrooveridgeinsetoutsetnonehiddendotteddashedsoliddoublegrooveridgeinsetoutsetThis is a shorthand property that accepts one to four values.
thinmediumthick<length>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.
thinmediumthick<length>thinmediumthick<length>thinmediumthick<length>thinmediumthick<length>slicecloneThe "inset" keyword is optional. The <length> values are horizontal offset, vertical offset, blur and spread. Multiple shadows are applied by comma-separating value sets.
content-boxpadding-boxborder-boxautoalwaysavoidleftrightpagecolumnavoid-pageavoid-columnPart of CSS3 multiple columns.
autoalwaysavoidleftrightpagecolumnavoid-pageavoid-columnPart of CSS3 multiple columns.
autoavoidavoid-pageavoid-columnPart of CSS3 multiple columns.
topbottombeforeafternoneleftrightbothnoneleftrightbothtopbottominsideoutsidestartenddescendantsautobalancePart of CSS3 multiple columns.
noneallPart of CSS3 multiple columns.
auto<length>Part of CSS3 multiple columns.
auto<integer>Part of CSS3 multiple columns.
normal<length>Part of CSS3 multiple columns.
This is a shorthand property. Values represent:
[column-rule-width] [column-rule-style] [column-rule-color]Part of CSS3 multiple columns.
[ Initial value depends on the user agent ]<color>Part of CSS3 multiple columns.
nonehiddendotteddashedsoliddoublegrooveridgeinsetoutsetPart of CSS3 multiple columns.
thinmediumthick<length>Part of CSS3 multiple columns.
This is a shorthand property. Values represent:
[column-width] [column-count]Part of CSS3 multiple columns.
normalnoneopen-quoteclose-quoteno-open-quoteno-close-quoteattr(<identifier><string><url><counter>iconnone<identifier> <integer>Part of CSS counters.
none<identifier> <integer>Part of CSS counters.
autodefaultnonecontext-menuhelppointerprogresswaitcellcrosshairtextvertical-textaliascopymoveno-dropnot-allowede-resizen-resizene-resizenw-resizes-resizese-resizesw-resizew-resizeew-resizens-resizenesw-resizenwse-resizecol-resizerow-resizeall-scrollzoom-inzoom-outurl("path/file.png")vertical-textinlineblockflexlist-iteminline-blocktableinline-flexinline-tabletable-row-grouptable-header-grouptable-footer-grouptable-rowtable-column-grouptable-columntable-celltable-captionnoneshowhideApplies to table cells.
noneleftrightThis is a shorthand property. Values represent:
[flex-grow] [flex-shrink] [flex-basis]nonePart of CSS3 flex box.
rowrow-reversecolumncolumn-reversePart of CSS3 flex box.
nowrapwrapwrap-reversePart of CSS3 flex box.
This is a shorthand property. Values represent:
[flex-direction] [flex-wrap]Part of CSS3 flex box.
0<number>Part of CSS3 flex box.
1<number>Part of CSS3 flex box.
auto<length>Part of CSS3 flex box.
flex-startflex-endcenterspace-betweenspace-aroundPart of CSS3 flex box.
stretchflex-startflex-endcenterbaselinePart of CSS3 flex box.
autoflex-startflex-endcenterbaselinestretchPart of CSS3 flex box.
stretchflex-startflex-endcenterspace-betweenspace-aroundPart of CSS3 flex box.
0<number>Part of CSS3 flex box.
This is a shorthand property. Values represent:
[font-style] [font-variant] [font-weight] [font-size] / [line-height] [font-family]For info on the order of values, mandatory values, etc., see this cheat sheet.
[ Initial value depends on the user agent ]<family-name>Font stacks are created by comma-separating font names. A final <generic-family> is recommended.
<length><percentage>xx-smallx-smallsmallmediumlargex-largexx-largelargersmallernormalultra-condensedextra-condensedcondensedsemi-condensedsemi-expandedexpandedextra-expandedultra-expandednone<number>noneweightstyleweight styleautonormalnoneThis is a shorthand property. Values include:
normalsmall-capsall-small-capspetite-capsall-petite-capstitling-capsunicaseThis property is now a shorthand covering a number of font feature properties. Not all possible values are shown here.
normalsmall-capsall-small-capspetite-capsall-petite-capstitling-capsunicasenormalitalicobliquenormalboldbolderlighter100200300400500600700800900nonefirstforce-endallow-endlastfirst force-endfirst allow-endlast force-endlast allow-endauto<length><percentage>manualnoneautoautoOne or more comma separated <url> valuesauto<length><percentage>0deg<angle>normal<length><percentage>Can be up to three values representing optimum, minimum, and maximum spacing. If two values are used, the first represents optimum and minimum; if one is used, it represents all three.
autoloosenormalstrictnormal<number><length><percentage>noneThis is a shorthand property. Values represent:
[list-style-type] [list-style-position] [list-style-image]Applies to CSS lists.
none<url>Applies to CSS lists.
outsideinsideApplies to CSS lists.
disccirclesquaredecimaldecimal-leading-zerolower-romanupper-romanlower-greeklower-latinupper-latinarmeniangeorgianlower-alphaupper-alphanoneApplies to CSS lists.
This is a shorthand property. Values represent:
[margin-top] [margin-right] [margin-bottom] [margin-left]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.
0<length><percentage>auto0<length><percentage>auto0<length><percentage>auto0<length><percentage>autonone<length><percentage>none<length><percentage>0<length><percentage>auto0<length><percentage>autofillcontaincovernonescale-down50% 50%<percentage> <length>left topcenter centerright bottomKeywords represent horizontal (left, center, right) and vertical (top, center, bottom) offsets, and can be mixed and matched.
1<number>Part of CSS3 paged media.
This is a shorthand property. Values represent:
[outline-color] [outline-style] [outline-width]invert<color>0<length>noneautodotteddashedsoliddoublegrooveridgeinsetoutsetmedium<length>thinthickvisiblehiddenscrollautovisiblehiddenscrollautovisiblehiddenscrollautonormalbreak-wordThis is a shorthand property. Values represent:
[padding-top] [padding-right] [padding-bottom] [padding-left]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.
autoalwaysavoidleftrightautoalwaysavoidleftrightPart of CSS3 paged media.
autoavoidPart of CSS3 paged media.
none<length>Part of CSS3 transforms.
50% 50%<percentage><length>leftcenterrighttopbottomPart of CSS3 transforms. Can be up to two space-separated values, for horizontal and vertical offsets.
autononeThe spec defines 8 other values that apply only to SVG elements.
Used along with :before and :after pseudo-elements.
nonebothhorizontalverticalautofixedApplies to HTML tables.
[ Initial value depends on the writing direction (ltr or rtl) ]leftrightcenterjustify<string>match-parentstartendstart endThe <string> value must be a single character.
autostartendleftrightcenterjustifyThis is a shorthand property. Values represent:
[text-decoration-line] [text-decoration-style] [text-decoration-color]noneunderlineoverlineline-throughblinkAllows multiple space-separated values.
noneobjectsspacesinkedgesAllows multiple space-separated values.
autoalphabeticunderleftrightunder leftunder rightsoliddoubledotteddashedwavyThis is a shorthand property. Values represent:
[text-emphasis-style] [text-emphasis-color]This shorthand does not include text-emphasis-position
nonefilledopendotcircledouble-circletrianglesesame<string>The values "filled" and "open" can be combined with any one of the remaining values except "none".
above rightabove leftbelow rightbelow left0<length><percentage><length> hanging<length> each-line<length> hanging each-lineWhere <length> is specified along with one or more optional keywords, this can be replaced with <percentage>.
autononeinter-wordinter-ideographinter-clusterdistributekashidamixed-rightuprightsideways-rightsideways-leftsidewaysuse-glyph-orientationnoneallclipellipsis<string>none
matrix([<number>, <number>, <number>, <number>, <number>, <number>])translate(<translation-value>, <translation-value>)translateX(<translation-value>)translateY(<translation-value>)scale(<number>)scaleX(<number>)scaleY(<number>)rotate(<angle>)skewX(<angle>)skewY(<angle>)matrix3d([16 comma-separated <number> values])translate3d(<translation-value>, <translation-value>, <length>)translateZ(<length>)scale3d(<number>, <number>, <number>)scaleZ(<number>)rotate3d(<number>, <number>, <number>, <angle>)rotateX(<angle>)rotateY(<angle>)rotateZ(<angle>)perspective(<length>)50% 50%<percentage><length>leftcenterrighttopbottomCan be up to three space-separated values, for horizontal, vertical, and Z position.
flatpreserve-3dnonecapitalizeuppercaselowercasefull-widthThe <length> values are horizontal offset, vertical offset, and blur. Multiple shadows are applied by comma-separating the sets of values.
This is a shorthand property. Values represent:
[transition-property] [transition-duration] [transition-timing-function] [transition-delay]Accepts a comma-separated list of transitions and their respective values.
allnone[ A comma-separated list of property names ]0s<time>normalembedbidi-overridebaselinesubsupertoptext-topmiddlebottomtext-bottom<percentage><length>Applies to inline elements.
normalprenowrappre-wrappre-linePart of CSS3 paged media.
normalkeep-allbreak-allnormal<length><percentage>Can be up to three values representing optimum, minimum, and maximum spacing. If two values are used, the first represents optimum and minimum, and one value represents all three.
normalbreak-wordThis property has been replaced by overflow-wrap, but all future browsers will support it as an alternate syntax.
horizontal-tbvertical-rlvertical-lrauto<integer>Applies to positioned elements.