content
normalnoneopen-quoteclose-quoteno-open-quoteno-close-quotecontentsimage()<string>attr()<counter>target-counter()target-text()leader()
Applies to ::before and ::after pseudo-elements.
autocurrentColortransparent<color>Only applies to certain form and/or UI elements.
stretchflex-startflex-endcenterspace-betweenspace-aroundnormalbaselinefirst baselinelast baselinespace-betweenspace-aroundspace-evenlystretchcenterstartendcenter safecenter unsafeThe safe and unsafe keywords are optional and can be used alongside any alignment keyword.
normalcenterflex-startflex-endstartendself-startself-endbaselinefirst baselinelast baselinestretchsafeunsafeautonormalself-startself-endflex-startflex-endcenterbaselinefirst baselinelast baselinestretchsafeunsafeThis is a shorthand property that resets all CSS properties. Value can be one of the following:
initialinheritunsetrevertThis 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.
normalreversealternate-reversealternateAccepts 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.
noneforwardsbothbackwardsAccepts 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 similar to how variable or function names are defined in JavaScript. This custom identifier must match an identifier used in an @keyframes at-rule.
runningpausedAccepts a comma-separated list of play state values to correspond to the animations identified in animation-name and the matching @keyframes at-rules.
easelinearstep-startstep-endease-inease-outease-in-outsteps(<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.
noneautotextfieldmenulist-buttonsearchfieldtextareapush-buttonslider-horizontalcheckboxradiosquare-buttonmenulistlistboxmeterprogress-barbuttonThis 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>visiblehiddenThis 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.
scrollfixedlocalIf multiple background images are defined, multiple background-attachment values are declared by comma-separating the values.
normalmultiplyscreenoverlaydarkenlightencolor-dodgecolor-burnhard-lightsoft-lightdifferenceexclusionhuesaturationcolorluminosityborder-boxpadding-boxcontent-boxtextIf 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>noneurl("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-boxborder-boxcontent-boxThis property has no effect on background images that have their background-attachment property set to "fixed".
0% 0%topbottomleftrightcenterright bottomleft topcenter 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.
repeatno-repeatspaceroundrepeat-yrepeat-xrepeat no-repeatround roundspace spaceCan 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.
autoauto autocovercontainauto <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-contentmin-contentavailablefit-content<length> border-box<percentage> content-boxThis 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.
nonehiddendotteddashedsoliddoublegrooveridgeinsetoutsetThis property depends on writing mode, direction, and text-orientation.
mediumthinthick<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.
nonehiddendotteddashedsoliddoublegrooveridgeinsetoutsetThis property depends on writing mode, direction, and text-orientation.
mediumthinthick<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>nonesolidridgeoutsetinsethiddengroovedoubledotteddashedmediumthinthick<length>separatecollapseThis 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.
stretchspaceroundrepeatspace roundstretch repeatTwo 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> fillThe fill keyword cannot be used on its own, it must precede or follow a length or percentage value.
noneurl("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]nonehiddendotteddashedsoliddoublegrooveridgeinsetoutsetmediumthinthick<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]nonehiddendotteddashedsoliddoublegrooveridgeinsetoutsetmediumthinthick<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>nonesolidridgeoutsetinsethiddengroovedoubledotteddashedmediumthinthick<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>nonesolidridgeoutsetinsethiddengroovedoubledotteddashedmediumthinthick<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.
nonesolidridgeoutsetinsethiddengroovedoubledotteddashedWhen 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>nonesolidridgeoutsetinsethiddengroovedoubledotteddashedmediumthinthick<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.
sliceclonenone[h‑offset] [v‑offset] [blur] [spread] <color> insetThe "inset" keyword is optional. The values in square brackets are expressed as <length> values. Multiple shadows are defined by comma-separating value sets.
content-boxborder-boxFirefox up to version 50 is the only browser that supports the padding-box value, which is now deprecated.
autoavoidalwaysallavoid-pagepageleftrightrectoversoavoid-columncolumnavoid-regionregionBrowser support is for Paged Media. For further browser support details see MDN or caniuse.com.
autoavoidalwaysallavoid-pagepageleftrightrectoversoavoid-columncolumnavoid-regionregionBrowser support is for Paged Media. For further browser support details see MDN or caniuse.com.
autoavoidavoid-pageavoid-columnavoid-regionBrowser support is for Paged Media. For further browser support details see MDN or caniuse.com.
topbottominline-startinline-endApplies to <caption> elements on HTML tables. Previous versions of Firefox supported a number of additional non-standard values.
autocurrentColor<color>noneleftrightbothinline-startinline-endApplies 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-boxborder-boxpadding-boxcontent-boxfill-boxstroke-boxview-boxmargin-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 ]currentColortransparent<color>economyexactauto<integer>Part of CSS multiple columns.
balanceautobalance-allPart 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 ]currentColortransparent<color>Part of CSS Multi-column module.
nonesolidridgeoutsetinsethiddengroovedoubledotteddashedPart of CSS Multi-column module.
mediumthinthick<length>Part of CSS Multi-column module.
noneallPart 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.
normalnoneopen-quoteclose-quoteno-open-quoteno-close-quotecontentsimage()<string>attr()<counter>target-counter()target-text()leader()Applies to ::before and ::after pseudo-elements.
visiblehiddenautoPart 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.
autourl("path/file.png")url("path/file.png") <number> <number>defaultnonecontext-menuhelppointerprogresswaitcellcrosshairtextvertical-textaliascopymoveno-dropnot-allowedgrabgrabbingall-scrollcol-resizerow-resizen-resizes-resizew-resizene-resizenw-resizese-resizesw-resizeew-resizens-resizenesw-resizenwse-resizezoom-inzoom-outA URL value can take optional x and y <number> coordinates (from 0 to 32).
ltrrtlinlineblockinline-blockinline-tablerun-inflowflow-roottableflexgridrubylist-itemtable-row-grouptable-header-grouptable-footer-grouptable-rowtable-celltable-column-grouptable-columntable-captionruby-baseruby-textruby-base-containerruby-text-containercontentsnoneinline-flexinline-gridNow 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.
showhideApplies to table cells.
When using the function values, accepts a space-separated list of one or more functions.
noneurl("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]noneautocontent<length><percentage>rowrow-reversecolumncolumn-reverseThis is a shorthand property that accepts one or two space-separated values representing:
[flex‑direction] [flex‑wrap]0<number>1<number>nowrapwrapwrap-reversenoneleftrightinline-startinline-endblock-startblock-endsnap-blocksnap-block()snap-inlinesnap-inline()topbottomThis 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]captioniconmenumessage-boxsmall-captionstatus-barFor info on the order of values, mandatory values, etc., see this cheat sheet.
[ Initial value depends on UA ]<family-name>serifsans-serifcursivefantasymonospacesystem-uiemojimathfangsongui-serifui-sans-serifui-monospaceui-roundedFont 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.
autonormalnonenormal<string>autononemediumxx-smallx-smallsmalllargex-largexx-largexxx-largesmallerlarger<length><percentage>none<number>normalsemi-condensedcondensedextra-condensedultra-condensedsemi-expandedexpandedextra-expandedultra-expanded<percentage>normalitalicobliqueoblique <angle>weight stylenoneweightstyleThis is a shorthand property that can also accept keywords and function values.
normalsmall-capsall-small-capspetite-capsall-petite-capsunicasetitling-capsnone[font‑variant‑caps] [font‑variant‑numeric] [font‑variant‑alternates] [font‑variant‑ligatures] [font‑variant‑east‑asian]normalunicasetitling-capssmall-capspetite-capsall-small-capsall-petite-capsnormaljis78jis83jis90jis04simplifiedtraditionalfull-widthproportional-widthrubyautotextemojiunicodenormalnonecommon-ligaturesno-common-ligaturesdiscretionary-ligaturesno-discretionary-ligatureshistorical-ligaturesno-historical-ligaturescontextualno-contextualnormalordinalslashed-zerolining-numsoldstyle-numsproportional-numstabular-numsdiagonal-fractionsstacked-fractionsnormalsubsupernormalboldlighterbolder900800700600500400300200100normalsubsuperautolineblockautononeThis 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]automin-contentmax-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()rowcolumndenserow densecolumn denseautomin-contentmax-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.
noneauto<length> <flex length><custom identifier> <length><custom identifier> <length> <custom identifier> <custom identifier>minmax(min, max)max-contentmin-contentfit-content(<length>)fit-content(<percentage>)repeat()subgridmasonryExamples using auto-track-list values:
noneauto<length> <flex length><custom identifier> <length><custom identifier> <length> <custom identifier> <custom identifier>minmax(min, max)max-contentmin-contentfit-content(<length>)fit-content(<percentage>)repeat()subgridmasonryExamples using auto-track-list values:
nonefirstlastforce-endallow-endlast force-endfirst allow-end lastTwo or three keywords can be mixed and matched.
auto<percentage><length>min-contentmax-contentfit-content(<percentage>)fit-content(<length>)manualnoneautoBrowser support below is for English. For support in other languages, see hyphens on caniuse.com.
autosmoothhigh-qualitycrisp-edgespixelated1dppx<resolution><resolution> snapfrom-imagefrom-image snapalphabeticborder-boxideographichebrewhangingnonefirstallgrid<length><percentage>auto<length><percentage>max-contentmin-contentavailablefit-content<length> border-box<percentage> content-boxnormalstretchThis 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>autoisolateFor flexbox:
flex-startspace-betweenspace-aroundflex-endcenterFor grid layout:
normalspace-betweenspace-aroundspace-evenlystretchcentercenter safecenter unsafeleftrightbaselinefirst baselinelast baselinePart of Box Alignment Module. The safe and unsafe keywords are optional and can be used alongside any alignment keyword.
legacynormalstretchleftrightcenterlegacy leftlegacy rightlegacy centerbaselinefirst baselinelast baselinesafe centerunsafe centerstartendself-startself-endflex-startflex-startThe safe and unsafe keywords are optional and can be used alongside any alignment keyword.
autonormalstretchleftrightcenterbaselinefirst baselinelast baselinesafe centerunsafe centerstartendself-startself-endflex-startflex-startThe 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>autostrictnormallooseanywherenone<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-parentcreatenormal<percentage><number><length>0<length>nonebaselinecontainThis is a shorthand property. Values represent:
[list‑style‑position] [list‑style‑image] [list‑style‑type]noneurl("path/file.png")<radial-gradient><linear-gradient><conic-gradient><repeating-gradient>outsideinsidediscnonecirclesquaredecimal<string>symbols()cjk-decimaldecimal-leading-zerolower-romanupper-romanlower-greeklower-alphalower-latinupper-alphaupper-latinarabic-indicarmenianbengalicambodiancjk-earthly-branchcjk-heavenly-stemcjk-ideographicdevanagariethiopic-numericgeorgiangujaratigurmukhihebrewhiraganahiragana-irohajapanese-formaljapanese-informalkannadakatakanakatakana-irohakhmerkorean-hangul-formalkorean-hanja-formalkorean-hanja-informallaolower-armenianmalayalammongolianmyanmaroriyapersiansimp-chinese-formalsimp-chinese-informaltamilteluguthaitibetantrad-chinese-formaltrad-chinese-informalupper-armeniandisclosure-opendisclosure-closedkhmerkhmerkhmerThis 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]0auto<percentage><length>autokeepdiscardThis 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]0auto<percentage><length>0auto<percentage><length>0auto<percentage><length>nonein-flowallThis 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]alphaluminanceAccepts one or two space-separated values.
stretchrepeatroundspacestretch spacerepeat roundAccepts one to four space separated values and an optional keyword.
noneurl("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-boxcontent-boxpadding-boxfill-boxstroke-boxview-boxno-clipAccepts one or more comma-separated mask-clip layers (i.e. similar to layered multiple backgrounds).
addsubtractintersectexcludeAccepts one or more comma-separated mask-composite layers (i.e. similar to layered multiple backgrounds).
noneurl("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-sourcealphaluminanceAccepts one or more comma-separated mask-mode layers (i.e. similar to layered multiple backgrounds).
border-boxcontent-boxpadding-boxfill-boxstroke-boxview-boxAccepts one or more comma-separated mask-origin layers (i.e. similar to layered multiple backgrounds).
0% 0%topbottomleftrightcenterright bottomleft topcenter center<percentage> <length>Accepts one or more comma-separated mask-position layers (i.e. similar to layered multiple backgrounds).
repeatno-repeatspaceroundrepeat-yrepeat-xrepeat no-repeatround roundspace spaceAccepts one or more comma-separated mask-repeat layers (i.e. similar to layered multiple backgrounds).
autoauto autocovercontainauto <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).
luminancealphanone<percentage><length>none<percentage><length>min-contentmax-contentfit-content(<percentage>)fit-content(<length>)none<integer>none<percentage><length>min-contentmax-contentfit-content(<percentage>)fit-content(<length>)auto<percentage><length>min-contentmax-contentfit-content(<percentage>)fit-content(<length>)auto<percentage><length>min-contentmax-contentfit-content(<percentage>)fit-content(<length>)normalmultiplyscreenoverlaydarkenlightencolor-dodgecolor-burnhard-lightsoft-lightdifferenceexclusionhuesaturationcolorluminosityfillnonecoverscale-downcontain scale-downcover scale-down50% 50%topbottomleftrightcenterright bottomleft topcenter 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]autotopbottomleftrightcenterright bottomleft topcenter 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.
noneray()path()url("path/file.svg")content-boxpadding-boxborder-boxpadding-boxfill-boxstroke-boxview-box<basic-shape> content-box<basic-shape> padding-box<basic-shape> border-box<basic-shape> fill-box<basic-shape> stroke-box<basic-shape> view-boxautotopbottomleftrightcenterright bottomleft topcenter center<percentage> <length>Keywords represent horizontal offsets (left, center, right) and vertical offsets (top, center, bottom), and can be mixed and matched.
autoreverse<angle>Part of CSS paged media.
This is a shorthand property. Values represent:
[outline‑color] [outline‑style] [outline‑width]currentColor<color>invertModern browsers do not support the invert keyword, which is assigned as the initial value in the spec.
0<length>noneautodotteddashedsoliddoublegrooveridgeinsetoutsetmediumthinthick<length>This is a shorthand property that accepts one or two space separated values representing:
[overflow‑x] [overflow‑y]autononevisiblehiddenclipscrollautoCorresponds to overflow-y.
0px<length>visiblehiddenclipscrollautoCorresponds to overflow-x.
normalbreak-wordanywhereDeeper browser support is possible by using the alternate syntax word-wrap.
visiblehiddenclipscrollautovisiblehiddenclipscrollautoThis is a shorthand property. Values represent:
[overscroll‑behavior‑x] [overscroll‑behavior‑y]autocontainnoneautocontainnoneautocontainnoneautocontainnoneThis 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>autoalwaysavoidleftrightThis property has been replaced by break-after.
autoalwaysavoidleftrightThis property has been replaced by break-before.
autoavoidThis property has been replaced by break-inside.
uprightrotate-leftrotate-rightCan be used only inside an @page rule.
none<length>50% 50%topbottomleftrightcenterright bottomleft topcenter 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]autononeThe spec defines eight other values that apply only to SVG elements.
staticrelativeabsolutestickyfixedUsed along with :before and :after pseudo-elements.
nonebothhorizontalverticalblockinlineRequires 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.
autosmoothThis 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]nonestartendcenterstart endend centernormalalwaysnonexyblockinlinebothx mandatoryblock proximityThe mandatory and proximity keywords are optional and can follow any of the other keyword values.
autostablealwaysstable both forcealways both forceautothinnone0x<length><percentage>autooutside-shapedisplayinset()circle()ellipse()polygon()polygon() shape-boxpath()url("path/file.svg")<radial-gradient><linear-gradient><conic-gradient><repeating-gradient>nonemargin-boxborder-boxpadding-boxcontent-boxinset() border-boxinset()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>autofixedApplies to HTML table elements.
startendleftrightcenterjustifymatch-parentjustify-allstartendleftrightcenterjustifymatch-parentautostartendleftrightcenterjustifymatch-parentnonealldigitsdigits <integer>This is a shorthand property. Values represent:
[text‑decoration‑line] [text‑decoration‑thickness] [text‑decoration‑style] [text‑decoration‑color]noneunderlineoverlineline-throughblinkunderline overlineunderline line-through blinkunderline overline line-through blinkspelling-errorgrammar-errorThe first four keywords can be mixed and matched up to four times.
noneautosoliddoubledotteddashedwavyautofrom-font<length><percentage>This is a shorthand property. Values represent:
[text‑emphasis‑style] [text‑emphasis‑color]over rightover allunder rightunder allnonefilledopendotcircledouble-circletrianglesesamefilled circleopen sesame<string>The filled and open keywords can be used alongside any of the other keywords.
nonestartendleftrightcenter0<length><percentage><length> hanging<length> each-line<percentage> hanging<percentage> each-line<length> hanging each-line<percentage> hanging each-lineautononeinter-wordinter-charactermixeduprightsidewaysclipellipsis<string>fadefade(<length>)fade(<percentage>)autooptimizeSpeedoptimizeLegibilitygeometricPrecisionThis 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.
autonone<percentage>nonetrim-innerdiscard-beforediscard-afternormalnoneautotrim-startspace-startspace-firsttrim-endspace-endallow-endtrim-adjacentspace-adjacentno-compressideograph-alphaideograph-numericpunctuationtrim-start space-end trim-adjacent no-compress ideograph-numeric punctuationMultiple keywords can be mixed and matched, but with some restructions, as in the final line above. See the spec for details.
nonecapitalizeuppercaselowercasefull-widthfull-size-kanaauto<length><percentage>autofrom-fontunderleftrightfrom-font leftfrom-font rightunder leftunder rightwrapnowrapbalancestableprettyauto<percentage><length>Applies to positioned elements.
autononepan-xpan-leftpan-rightpan-ypan-uppan-downmanipulationnonematrix()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-boxcontent-boxborder-boxfill-boxstroke-box50% 50%toprightleftcenterbottom<percentage><length>bottom <percentage> <length>Can be up to three space-separated values (keywords or values) representing X, Y, and Z offsets.
flatpreserve-3dPart 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.
allnonecolorcolor, border-bottomCan be any valid animatable CSS property. Multiple transition properties are defined by comma-separating values.
easelinearstep-startstep-endease-inease-outease-in-outsteps(<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.
normalembedisolatebidi-overrideisolate-overrideplaintextautotextnonecontainallbaselinetopmiddlebottomsubsupertext-toptext-bottom<length><percentage>The first four values render differently when applied to table cells.
visiblehiddencollapsenormalprenowrappre-wrappre-linePart of CSS paged media.
automin-contentmax-contentfit-content(<length>)fit-content(<percentage>)<percentage><length>autoscroll-positioncontentstransformtop, widthThe last two examples above can be any valid animatable CSS property or comma-separated list of properties
normalkeep-allbreak-allbreak-wordnormal<length>normalbreak-wordThis is now an alias for overflow-wrap but has deeper browser support and doesn't accept the anywhere keyword value.
autoavoidavoid-lineavoid-flexlineflexautoavoidavoid-lineavoid-flexlineflexautobothstartendminimummaximumclearautoavoidwrapnonehorizontal-tbvertical-rlvertical-lrsideways-rlsideways-lrauto<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.