CSS properties reference
Each entry has a live example, when to use it and what to watch out for. Open one in the playground to try it.
Open in the playground All HTML elements F12 DevTools guide
Basics
SelectorsHow CSS picks elements: by tag, class, id, position and state.Box modelEvery element is a box of content, padding, border and margin.Flexbox rowsLines items up in one row or column with display: flex.Grid boardPlaces items on rows and columns at once with display: grid.Responsive design with @mediaChanges the layout for narrow and wide screens with media queries.CSS variablesStores a value once with --name and reuses it with var().Animation with @keyframesMoves or changes an element over time with @keyframes and animation.TransitionsSmoothly changes a property from one value to another when a state changes.
CSS properties
Effects, filters and masks
background-blend-modeBlends an element's background images with each other and with its background color.isolationMakes an element start its own stacking context so blending inside it stays inside it.mix-blend-modeSets how an element's colors mix with whatever is drawn behind it.box-shadowDraws one or more shadows around or inside an element's box.opacitySets how see-through an element is, from 0 (invisible) to 1 (solid).visibilityShows or hides an element while keeping the space it takes up.image-renderingTells the browser how to scale an image: blend pixels smoothly or keep hard square edges.clip-pathCuts an element to a shape so only the part inside the shape is drawn.maskShorthand that sets one or more mask layers, which decide how much of an element shows at each point.mask-borderShorthand that uses an image, sliced into nine parts, as a mask along the element's border edge.mask-border-modeChooses whether the mask-border image is read by its alpha channel or by its brightness.mask-border-outsetPushes the mask-border area out past the element's border box.mask-border-repeatSets how the edge slices of a mask-border image fill each side: stretched, repeated, rounded or spaced.mask-border-sliceSets where the mask-border image is cut into corners, edges and a middle part.mask-border-sourceSets the image used as the mask-border.mask-border-widthSets how thick the edge area of the mask-border is.mask-clipSets which box of the element the mask is allowed to cover; parts outside it are hidden.mask-compositeSets how each mask layer is combined with the mask layers below it.mask-imageSets the image or gradient used as a mask layer on an element.mask-modeChooses whether a mask image is read by its transparency or by its brightness.mask-originSets the box that mask-position and mask-size are measured from.mask-positionSets where each mask image is placed inside the element.mask-repeatSets whether a mask image is tiled, and in which direction.mask-sizeSets the size of each mask image tile.backdrop-filterApplies filter effects such as blur to whatever shows behind an element.filterApplies graphic effects such as blur, grayscale or a shadow to an element and its content.
Display and position
bottomSets how far a positioned element sits from the bottom edge of its containing block.leftSets how far a positioned element sits from the left edge of its containing block.rightSets how far a positioned element sits from the right edge of its containing block.topSets how far a positioned element sits from the top edge of its containing block.containerShorthand that names an element as a query container and sets its container type in one line.container-nameGives a query container one or more names so @container rules can target it.container-typeMakes an element a query container and sets which of its features can be queried.containTells the browser that an element's inside is independent from the rest of the page, so it can skip work.content-visibilityLets the browser skip drawing an element's contents until they are needed.displaySets how an element's box takes part in layout and how its children are laid out.reading-flowMakes keyboard and screen reader order follow the visual layout of flex or grid items.reading-orderSets an item's place in the reading and focus order inside a reading-flow container.clearMakes an element move down below earlier floated elements instead of wrapping beside them.floatPushes an element to the left or right side and lets text flow around it.positionPicks how an element is placed: in flow, nudged, pinned, or stuck while scrolling.z-indexSets which positioned element appears in front when boxes overlap.shape-image-thresholdSets how opaque a shape-outside image pixel must be to count as the float shape.shape-marginAdds space around a float's shape-outside, pushing wrapped text away from the curve.shape-outsideGives a floated element a non-rectangular shape that nearby text wraps around.
Box size and spacing
margin-bottomSets the empty outer space below an element.margin-leftSets the empty outer space on the left side of an element.margin-rightSets the empty outer space on the right side of an element.margin-topSets the empty outer space above an element.marginSets the outer space outside the border, on all four sides at once.paddingSets the inner space between the content and the border, on all four sides at once.padding-bottomSets the inner space on the bottom side only, between the content and the border.padding-leftSets the inner space on the left side only, between the content and the border.padding-rightSets the inner space on the right side only, between the content and the border.padding-topSets the inner space on the top side only, between the content and the border.aspect-ratioSets a preferred width-to-height ratio for a box.box-sizingDecides whether width and height include the padding and border.contain-intrinsic-block-sizeSets a stand-in block size (height in horizontal text) for a box with size containment.contain-intrinsic-heightSets a stand-in height for a box with size containment.contain-intrinsic-inline-sizeSets a stand-in inline size (width in horizontal text) for a box with size containment.contain-intrinsic-sizeShorthand for the stand-in width and height of a box with size containment.contain-intrinsic-widthSets a stand-in width for a box with size containment.heightSets the height of a box.max-heightStops a box from growing taller than a given height.max-widthStops a box from growing wider than a given width.min-heightKeeps a box from getting shorter than a given height.min-widthKeeps a box from getting narrower than a given width.widthSets how wide an element's box is.box-decoration-breakSays how padding, border and background behave where a box breaks across lines, columns or pages.object-fitSets how an image or video fills its box when the box shape differs from the picture.object-positionMoves an image or video inside its box, choosing which part stays visible after fitting.
Animation and transition
animationShorthand that sets the name, duration, timing and other settings of a keyframe animation.animation-compositionSets how an animation's values combine with the element's own value for the same property.animation-delaySets how long to wait before an animation starts.animation-directionSets whether an animation plays forward, backward, or switches direction each cycle.animation-durationSets how long one cycle of an animation takes.animation-fill-modeSets which keyframe styles apply before an animation starts and after it ends.animation-iteration-countSets how many times an animation repeats.animation-nameNames the @keyframes rule (or rules) an element should run.animation-play-statePauses or resumes a running animation.animation-timing-functionSets the speed curve of an animation: where it speeds up and slows down.animation-triggerTies an animation to a named trigger and sets what it does when the trigger fires.timeline-triggerShorthand that declares a timeline trigger: its name, its source timeline and its ranges.timeline-trigger-exit-rangeSets the range a timeline must leave before a timeline trigger turns off again.timeline-trigger-exit-range-endSets the end point of the range a timeline trigger must leave before it turns off.timeline-trigger-exit-range-startSets the start point of the range a timeline trigger must leave before it turns off.timeline-trigger-nameGives a timeline trigger a name so animations can refer to it.timeline-trigger-rangeSets the part of the timeline in which a timeline trigger is active.timeline-trigger-range-endSets the point on the timeline where a timeline trigger's active range ends.timeline-trigger-range-startSets the point on the timeline where a timeline trigger's active range begins.timeline-trigger-sourceSets which timeline a timeline trigger watches.trigger-scopeLimits where trigger names can be seen, so repeated parts do not share one trigger.transitionShorthand that makes property changes happen smoothly over time.transition-behaviorLets transitions also run on properties with on/off values such as display.transition-delaySets how long to wait before a transition starts.transition-durationSets how long a transition takes from start to end.transition-propertyLists which CSS properties should change smoothly.transition-timing-functionSets the speed curve of a transition, such as slow start or slow end.view-transition-classPuts named elements of a view transition into shared groups for styling.view-transition-nameGives an element its own name so a view transition animates it separately.will-changeTells the browser in advance which property is about to change, so it can get ready.
Backgrounds
backgroundShorthand that sets every background property of an element in one declaration.background-attachmentSets whether a background scrolls with the box, with its content, or stays fixed.background-clipSets where the background is cut off: border, padding, content or text.background-colorSets the solid color painted behind an element's content and padding.background-imagePaints images or gradients on the background of an element.background-originChooses which box the background image is placed against: border, padding or content.background-positionSets where a background image sits inside its box.background-position-xSets only the horizontal position of a background image.background-position-ySets only the vertical position of a background image.background-repeatControls whether a background image tiles, and in which direction.background-sizeSets how large a background image is drawn.
Borders and corners
borderDraws a line around all four sides of an element in one declaration.border-bottomSets the width, style and color of the bottom border in one declaration.border-bottom-colorSets the color of the bottom border only.border-bottom-left-radiusRounds the bottom-left corner of an element.border-bottom-right-radiusRounds the bottom-right corner of an element.border-top-left-radiusRounds the top-left corner of an element.border-top-right-radiusRounds the top-right corner of an element.border-bottom-styleSets the line style of the bottom border.border-bottom-widthSets the thickness of the bottom border.border-colorSets the border color of all four sides, together or one by one.border-imageDraws an image or gradient in place of the plain border line.border-image-outsetPushes the border image outward, past the edge of the border box.border-image-repeatSets how the edge pieces of a border image fill each side.border-image-sliceSets where the border image is cut into corners, edges and a middle.border-image-sourceSets the image or gradient used to draw the border.border-image-widthSets how thick the border image is drawn.border-leftSets the width, style and color of the left border in one declaration.border-left-colorSets the color of the left border only.border-left-styleSets the line style of the left border.border-left-widthSets the thickness of the left border.border-radiusRounds the corners of an element.border-rightSets the width, style and color of the right border in one declaration.border-right-colorSets the color of the right border only.border-right-styleSets the line style of the right border.border-right-widthSets the thickness of the right border.border-styleSets the line style of all four borders, together or side by side.border-topSets the width, style and color of the top border in one declaration.border-top-colorSets the color of the top border only.border-top-styleSets the line style of the top border.border-top-widthSets how thick the top border line is.border-widthSets the thickness of all four border lines in one declaration.corner-block-end-shapeSets the shape of the corners on the block-end side of a box with rounded corners.corner-block-start-shapeSets the shape of the corners on the block-start side of a box with rounded corners.corner-bottom-left-shapeSets the shape of the bottom-left corner of a box with rounded corners.corner-bottom-right-shapeSets the shape of the bottom-right corner of a box with rounded corners.corner-bottom-shapeSets the shape of the two bottom corners of a box with rounded corners.corner-end-end-shapeSets the shape of the end-end corner of a box with rounded corners.corner-end-start-shapeSets the shape of the end-start corner of a box with rounded corners.corner-inline-end-shapeSets the shape of the corners on the inline-end side of a box with rounded corners.corner-inline-start-shapeSets the shape of the corners on the inline-start side of a box with rounded corners.corner-left-shapeSets the shape of the two left corners of a box with rounded corners.corner-right-shapeSets the shape of the two right corners of a box with rounded corners.corner-shapeSets the shape of all four rounded corners of a box.corner-start-end-shapeSets the shape of the start-end corner of a box with rounded corners.corner-start-start-shapeSets the shape of the start-start corner of a box with rounded corners.corner-top-left-shapeSets the shape of the top-left corner of a box with rounded corners.corner-top-right-shapeSets the shape of the top-right corner of a box with rounded corners.corner-top-shapeSets the shape of the two top corners of a box with rounded corners.
User interface
accent-colorSets the highlight color of built-in form controls such as checkboxes and sliders.appearanceTurns the native look of a form control on or off.caretShorthand that sets the text cursor's color, shape and blinking behavior.caret-animationChooses whether the browser blinks the text cursor or leaves the animation to you.caret-colorSets the color of the text cursor in inputs and editable areas.caret-shapeSets the shape of the text cursor: a thin bar, a block or an underscore.cursorSets which mouse pointer appears when the pointer is over an element.interactivityMakes an element and everything inside it inert from CSS.interest-delayShorthand for how long to wait before showing and before hiding an interest popup.interest-delay-endSets how long to wait before an interest popup closes after the user moves away.interest-delay-startSets how long to wait before an interest popup opens.outlineShorthand that draws a line outside an element's border without taking up space.outline-colorSets the color of an element's outline.outline-offsetSets the gap between an element's border edge and its outline.outline-styleSets the line style of an element's outline, such as solid, dashed or dotted.outline-widthSets the thickness of an element's outline.pointer-eventsControls whether an element can be the target of mouse, touch and pen events.resizeLets the user drag a corner handle to change the size of an element.user-selectDecides whether the reader can highlight text in an element.touch-actionTells the browser which finger gestures, such as scrolling or pinch zoom, it may handle itself on an element.
Alignment and gaps
align-contentPlaces the whole group of lines inside a flex or grid container along the cross axis.align-itemsLines up every item on the cross axis inside its flex line or grid cell.align-selfOverrides the cross-axis position for one flex or grid item.column-gapSets only the space between columns.gapShorthand for row-gap and column-gap: the space between rows and columns.justify-contentDistributes flex or grid items along the main axis and decides where leftover space goes.justify-itemsSets the inline-axis (horizontal) position of every item inside its grid cell.justify-selfSets the inline-axis (horizontal) position of one grid item inside its cell.place-contentShorthand that sets align-content and justify-content in one line.place-itemsShorthand that sets align-items and justify-items in one line.place-selfShorthand that sets align-self and justify-self for one item.row-gapSets only the space between rows.baseline-sourceChooses whether a box lines up with surrounding text using its first or last line of text.vertical-alignMoves an inline box or a table cell's content up or down within its line or row.
Multi-column
column-heightSets the height of each column box in a multi-column layout.column-widthSets the ideal width of each column in a multi-column layout.column-wrapDecides whether extra columns in a multi-column layout wrap to a new row below.break-afterForces or blocks a column or page break right after an element.break-beforeForces or blocks a column or page break right before an element.break-insideSays whether a column or page break may cut through the middle of an element.orphansSets the fewest lines of a paragraph that may be left at the bottom of a column or page.widowsSets the fewest lines of a paragraph that may start the top of the next column or page.column-countSets how many columns the content of a block is split into.column-fillSets whether content is spread evenly over the columns or fills them one after another.column-ruleShorthand that draws a line between columns, setting its width, style and color.column-rule-colorSets the color of the line drawn between columns.column-rule-styleSets the line style of the divider between columns, such as solid, dashed or dotted.column-rule-widthSets how thick the line between columns is.column-spanLets an element inside a multi-column block stretch across all columns.columnsShorthand that sets the column width and the column count in one line.
Other
allResets every CSS property of an element at once, except direction and unicode-bidi.pageNames the kind of printed page an element should sit on, matched with a named @page rule.
Color
colorSets the color of an element's text and text decorations.color-schemeTells the browser which color schemes (light, dark) an element can be shown in.dynamic-range-limitLimits how bright HDR content may get on screens that can show extra brightness.forced-color-adjustDecides whether the browser may replace an element's colors in forced colors mode.print-color-adjustTells the browser whether it may change colors and backgrounds to save ink when printing.
Flexbox
orderChanges the visual position of a flex or grid item without moving it in the HTML.flexShorthand that sets how a flex item grows, shrinks and what size it starts from.flex-basisSets the starting size of a flex item along the main axis, before extra space is shared out.flex-directionSets which way flex items run: across in a row, or down in a column, forward or reversed.flex-flowShorthand for flex-direction and flex-wrap in one line.flex-growSets how much of the leftover space in a flex container an item takes.flex-shrinkSets how much a flex item gives up when there is not enough room on the line.flex-wrapSets whether flex items stay on one line or break onto more lines when they run out of room.
Fonts
fontShorthand that sets style, weight, size, line height and family of text in one line.font-familyLists the fonts to use for text, in order of preference.font-feature-settingsTurns OpenType font features on or off directly by their four-letter tags.font-kerningTurns on or off the kerning data stored in a font, which adjusts space between certain letter pairs.font-language-overrideTells the font which language's letter shapes to use, regardless of the lang attribute.font-optical-sizingLets variable fonts adjust letter shapes to suit the size the text is shown at.font-palettePicks which color palette a color font uses for its glyphs.font-sizeSets the size of text.font-size-adjustKeeps the visible size of lowercase letters steady when the font falls back to another one.font-styleSets whether text is shown upright, italic or oblique (slanted).font-synthesisControls whether the browser may fake bold, italic, small-caps or superscript faces the font lacks.font-synthesis-small-capsSays whether the browser may fake small capitals when the font has none.font-synthesis-styleSays whether the browser may slant upright letters when the font has no italic.font-synthesis-weightSays whether the browser may thicken letters when the font has no bold face.font-variantShorthand that picks alternate letter shapes: small caps, number styles, ligatures and more.font-variant-alternatesTurns on alternate glyphs a font offers, such as swashes, stylistic sets or old forms.font-variant-capsChooses capital letter forms such as small caps, petite caps or titling caps.font-variant-east-asianPicks East Asian glyph forms: Japanese standard years, simplified or traditional shapes, and widths.font-variant-emojiChooses whether symbols that can be emoji show as color pictures or as plain text glyphs.font-variant-ligaturesTurns ligatures on or off: joined letter pairs such as fi, fl and ffi.font-variant-numericChooses digit styles: equal-width figures, old-style figures, slashed zero, fractions and ordinals.font-variant-positionUses the font's own superscript or subscript glyphs instead of shrunk, shifted letters.font-variation-settingsSets the axes of a variable font directly, such as weight, width or slant, by four-letter tags.font-weightSets how thick the letters are, from thin (100) to black (900).math-depthSets the nesting depth of math content; with font-size: math, each level is drawn smaller.math-styleChooses between full display sizing (normal) and tight in-line sizing (compact) for a math formula.
Generated content
contentPuts generated text, counters, quotes or images into ::before and ::after.quotesSets which quotation marks open-quote and close-quote use, including for nested quotes.
Grid
gridShorthand that sets the whole grid at once: rows, columns, areas and the automatic flow.grid-areaPlaces a grid item by giving its row and column lines, or the name of an area.grid-auto-columnsSets the width of columns the grid creates on its own, beyond the ones you defined.grid-auto-flowSets the direction in which the grid places items that have no position, and whether holes get filled.grid-auto-rowsSets the height of rows the grid creates on its own when items run past the defined rows.grid-columnSets where a grid item starts and ends across the columns.grid-column-endSets the column line where a grid item ends, or how many columns it spans.grid-column-startSets the column line where a grid item begins.grid-rowSets where a grid item starts and ends across the rows.grid-row-endSets the row line where a grid item ends, or how many rows it spans.grid-row-startSets the row line where a grid item begins.grid-templateShorthand for the grid's rows, columns and named areas in one declaration.grid-template-areasDraws the grid layout as a text map of named areas that items can be placed into.grid-template-columnsSets how many columns a grid has and how wide each one is.grid-template-rowsSets how many rows a grid has and how tall each one is.
Transforms
image-orientationDecides whether a photo is turned upright using the rotation tag saved in its EXIF data.backface-visibilitySets whether the back side of an element is shown when it is turned away from the viewer.perspectiveGives the children of an element a 3D depth, as if seen from a set distance.perspective-originSets the point the viewer looks from when perspective is used.rotateRotates an element, as a separate property from transform.scaleMakes an element larger or smaller, as a separate property from transform.transformMoves, turns, scales or skews an element with a list of transform functions.transform-boxSets which box transform-origin and percentage transforms are measured from.transform-originSets the point an element is rotated or scaled around.transform-styleSets whether the children of a 3D-transformed element share its 3D space or are flattened.translateMoves an element from its normal place, as a separate property from transform.zoomScales an element and its content, and the space it takes in the layout grows or shrinks too.offsetShorthand that puts an element on a motion path: the path, the distance along it, the turn and the anchor in one line.offset-anchorPicks which point of the element sits exactly on the motion path.offset-distanceSets how far along its motion path an element is placed.offset-pathDefines the line or shape that an element follows as its motion path.offset-positionSets the starting point on the containing block for a motion path such as ray().offset-rotateSets how an element turns while it sits on a motion path.
SVG
alignment-baselinePicks which guide line of a piece of SVG text is used to line it up with its parent.baseline-shiftMoves part of a text up or down from its parent's baseline, as in sub- and superscripts.dominant-baselineSets which baseline of SVG text sits on its y coordinate, which moves the text up or down.clip-rulePicks which parts of a self-crossing SVG shape count as inside when it is used for clipping.mask-typeSets whether an SVG <mask> element is read by brightness or by transparency.color-interpolation-filtersChooses the color space in which SVG filter primitives do their math: linearRGB or sRGB.flood-colorSets the color used by the SVG feFlood and feDropShadow filter primitives.flood-opacitySets how opaque the color of SVG feFlood and feDropShadow is, from 0 to 1.lighting-colorSets the color of the light in the SVG feDiffuseLighting and feSpecularLighting filter primitives.cxSets the x coordinate of the center of an SVG circle or ellipse from CSS.cySets the y coordinate of the center of an SVG circle or ellipse from CSS.dSets the shape of an SVG path element from CSS, using path().fillSets the paint inside SVG shapes and text: a color, a gradient or pattern, or nothing.fill-opacitySets how see-through the fill of an SVG shape or text is, without touching the stroke.fill-ruleDecides which parts of a self-crossing or nested SVG shape count as inside and get filled.markerShorthand that puts the same marker at the start, the corners and the end of an SVG line or path.marker-endPuts a marker, such as an arrowhead, on the last point of an SVG line or path.marker-midPuts a marker on every point between the first and the last of an SVG line or path.marker-startPuts a marker on the first point of an SVG line or path.paint-orderSets the order in which fill, stroke and markers are painted on SVG shapes and text.rSets the radius of an SVG circle from CSS.rxSets the horizontal radius of an SVG ellipse, or the corner rounding of an SVG rect, from CSS.rySets the vertical radius of an SVG ellipse, or the vertical corner rounding of an SVG rect, from CSS.shape-renderingHints whether SVG shapes should be drawn for speed, sharp edges or exact geometry.stop-colorSets the color of one stop inside an SVG gradient.stop-opacitySets how see-through one stop of an SVG gradient is.strokeSets the paint used for the outline of an SVG shape or SVG text.stroke-dasharrayTurns an SVG outline into a dashed or dotted line by listing dash and gap lengths.stroke-dashoffsetShifts where the dash pattern of an SVG outline starts.stroke-linecapSets the shape at the two open ends of an SVG line.stroke-linejoinSets the shape of the corner where two segments of an SVG outline meet.stroke-miterlimitSets how far a sharp miter corner may stick out before it is cut to a bevel.stroke-opacitySets how see-through the outline of an SVG shape is, without touching the fill.stroke-widthSets the thickness of the outline of an SVG shape or SVG text.text-anchorSets whether SVG text starts, centers or ends at its x position.text-renderingHints whether text drawing should favor speed, legibility or exact shapes.vector-effectKeeps an SVG outline the same screen width even when the shape is scaled.xSets the horizontal position of an SVG rect, image, foreignObject or nested svg from CSS.ySets the vertical position of an SVG rect, image, foreignObject or nested svg from CSS.
Text meaning
initial-letterMakes the first letter of a paragraph a large drop cap that spans several lines.line-heightSets the height of each line of text, which controls the space between lines.text-boxShorthand that trims the extra space above and below text down to chosen font edges.text-box-edgePicks where text-box-trim cuts: font edge, cap height, x-height or baseline.text-box-trimTurns on trimming of the empty space above the first line and below the last line of text.line-clampCuts text off after a set number of lines and ends it with an ellipsis.text-overflowDecides what shows at the cut edge when one line of text is clipped, such as an ellipsis.ruby-alignPlaces ruby text along its base: at the start, centered, or spread out.ruby-overhangLets ruby text wider than its base hang over nearby characters, or not.ruby-positionPuts ruby text above, below or beside its base text.text-decorationShorthand for text lines: which line, plus its style, color and thickness.text-decoration-colorSets the color of underlines, overlines and line-throughs.text-decoration-insetMoves the ends of a text line inward or outward to shorten or lengthen it.text-decoration-lineTurns on which text lines to draw: underline, overline, line-through or several at once.text-decoration-skip-inkDecides whether underlines break where they cross letters like g, j and y.text-decoration-styleSets the look of text lines: solid, double, dotted, dashed or wavy.text-decoration-thicknessSets how thick underlines, overlines and line-throughs are.text-emphasisShorthand that puts small emphasis marks on each character and sets their color.text-emphasis-colorSets the color of emphasis marks drawn by text-emphasis-style.text-emphasis-positionPlaces emphasis marks above or below the text, or left or right in vertical text.text-emphasis-styleChooses the shape of emphasis marks placed on each character.text-shadowDraws one or more shadows behind the letters of text.text-underline-offsetSets how far an underline sits from its normal position below the text.text-underline-positionSets where the underline goes: normal spot, below descenders, or a vertical side.hanging-punctuationLets a quote mark or stop hang outside the text box so the letters line up.hyphenate-characterSets the mark shown at a line end where a word is split by hyphenation.hyphenate-limit-charsSets the minimum word length and the minimum letters before and after a hyphenation break.hyphensControls whether the browser may split long words across lines with a hyphen.letter-spacingAdds or removes space between the letters of a text.line-breakSets how strictly lines may break around punctuation and small characters.overflow-wrapLets the browser break a long word that would otherwise overflow its box.tab-sizeSets how wide a tab character is drawn.text-alignLines up the inline content of a block to the left, right, center or both edges.text-align-lastSets how the last line of a block, or the line before a forced break, is aligned.text-autospaceAdds a small space between CJK ideographs and Latin letters or numbers.text-indentIndents the first line of a block of text.text-justifyChooses how space is spread out when text is justified.text-transformChanges letter case or form when text is drawn, without changing the source text.text-wrapShorthand that sets whether text wraps and how the line breaks are chosen.text-wrap-modeSets whether lines of text are allowed to wrap.text-wrap-styleChooses the method the browser uses to pick line breaks in wrapped text.white-spaceSets how spaces, tabs and line breaks in the source are handled, and whether text wraps.white-space-collapseSets whether runs of spaces and line breaks in the source are joined or kept.word-breakSets where lines may break inside words: between any letters, or only at spaces.word-spacingAdds or removes space between words.word-wrapOld name for overflow-wrap, kept so older style sheets still work.directionSets the base direction of text and inline content: left to right or right to left.text-combine-uprightIn vertical text, fits a short run of characters, such as a two-digit number, into one upright character cell.text-orientationSets how characters are turned in vertical text: upright, lying sideways, or mixed.unicode-bidiControls how the Unicode bidirectional algorithm treats an element's text; works together with direction.writing-modeSets whether lines of text run across or down, and which way new lines are added.
Lists and counters
counter-incrementAdds to a named CSS counter each time an element appears, for automatic numbering.counter-resetCreates a named CSS counter on an element and sets its starting value, 0 by default.counter-setChanges the value of an existing CSS counter on an element without starting a new counter.list-styleShorthand for the list marker: its type, its position, and an optional image.list-style-imageUses an image as the marker in front of each list item.list-style-positionPlaces the list marker outside the item's text box or inside it as part of the first line.list-style-typeSets the marker in front of list items: bullets, numbers, letters or your own text.
Logical (writing-direction) properties
block-sizeSize in the block direction: height in horizontal text, width in vertical text.border-blockSets width, style and colour of both block-direction borders in one declaration.border-block-colorSets the colour of the block-start and block-end borders, one value or two.border-block-endSets width, style and colour of the block-end border, the bottom in horizontal text.border-block-end-colorSets only the colour of the block-end border.border-block-end-styleSets only the line style of the block-end border, such as solid or dashed.border-block-end-widthSets only the thickness of the block-end border.border-block-startSets width, style and colour of the border at the block start, the top in horizontal text.border-block-start-colorSets only the colour of the block-start border.border-block-start-styleSets only the line style of the block-start border, such as dotted or double.border-block-start-widthSets only the thickness of the block-start border.border-block-styleSets the line style of the block-start and block-end borders, one value or two.border-block-widthSets the thickness of the block-start and block-end borders, one value or two.border-end-end-radiusRounds the block-end, inline-end corner: bottom-right in left-to-right text.border-end-start-radiusRounds the block-end, inline-start corner: bottom-left in left-to-right text.border-inlineSets width, style and color of the borders on both inline sides at once.border-inline-colorSets the color of the inline-start and inline-end borders.border-inline-endSets the border on the side where a line of text ends.border-inline-end-colorSets the color of the border on the inline end side.border-inline-end-styleSets the line style of the border on the inline end side.border-inline-end-widthSets the thickness of the border on the inline end side.border-inline-startSets the border on the side where a line of text begins.border-inline-start-colorSets the color of the border on the inline start side.border-inline-start-styleSets the line style of the border on the inline start side.border-inline-start-widthSets the thickness of the border on the inline start side.border-inline-styleSets the line style of both inline-side borders.border-inline-widthSets the thickness of both inline-side borders.border-start-end-radiusRounds the corner where the block start meets the inline end.border-start-start-radiusRounds the corner where the block start meets the inline start.inline-sizeSets the size of a box along the inline direction, where text runs.insetShorthand for top, right, bottom and left on a positioned element.inset-blockSets the block-start and block-end offsets of a positioned element.inset-block-endSets the offset from the block-end edge of a positioned element.inset-block-startSets the offset from the block-start edge of a positioned element.inset-inlineSets the inline-start and inline-end offsets of a positioned element.inset-inline-endSets the offset from the inline-end edge of a positioned element.inset-inline-startSets the offset from the inline-start edge of a positioned element.margin-blockSets the outer space on the block-start and block-end sides.margin-block-endSets the outer space on the block-end side of an element.margin-block-startSets the outer space on the block-start side of an element.margin-inlineSets the outer space on the inline-start and inline-end sides.margin-inline-endSets the outer space on the inline-end side of an element.margin-inline-startSets the outer space on the inline-start side of an element.max-block-sizeSets the largest size a box may have along the block direction.max-inline-sizeSets the largest size a box may have along the inline direction.min-block-sizeSets the smallest size a box may have along the block direction.min-inline-sizeSets the smallest size a box may have along the inline direction.padding-blockSets the inner space on the block-start and block-end sides.padding-block-endSets the inner space on the block-end side of an element.padding-block-startSets the inner space on the block-start side of an element.padding-inlineSets the inner space on the inline-start and inline-end sides.padding-inline-endSets the inner space on the side where a line of text ends.padding-inline-startSets the inner space on the side where a line of text begins.
Scrolling and overflow
overflowSets what happens when content is too big for its box: show it, cut it, or add scrollbars.overflow-blockSets overflow handling in the block direction, the way lines stack, which is vertical in horizontal text.overflow-clip-marginSets how far past its edge an element with overflow: clip may still paint content before it is cut.overflow-inlineSets overflow handling in the inline direction, the way text runs in a line, which is horizontal in horizontal text.overflow-xSets what happens when content is wider than its box: show it, cut it, or scroll sideways.overflow-ySets what happens when content is taller than its box: show it, cut it, or scroll up and down.scroll-behaviorChooses whether jumps inside a scroll box happen at once or with a smooth glide.scroll-marker-groupMakes the browser build a row of marker dots for a scroll box, placed before or after it.scroll-target-groupTurns the in-page links inside an element into markers that know which section is in view.scrollbar-gutterReserves room for the scrollbar so content does not shift when the bar appears.overscroll-behaviorControls what happens when you reach the end of a scroll box and keep scrolling.overscroll-behavior-blockSets overscroll behavior along the block direction only, which is vertical in normal text.overscroll-behavior-inlineSets overscroll behavior on the inline axis only: sideways in normal text.overscroll-behavior-xSets what happens past the left or right end of a scroll box.overscroll-behavior-ySets what happens past the top or bottom end of a scroll box.overflow-anchorTurns scroll anchoring, which holds your place when content above grows, on or off.scroll-marginAdds room around an element when it is scrolled to, so it stops short of the edge.scroll-margin-blockSets scroll margin on both block-direction sides at once: top and bottom in normal text.scroll-margin-block-endAdds room after an element on the block axis (below it) when it is scrolled to.scroll-margin-block-startAdds room before an element on the block axis (above it) when it is scrolled to.scroll-margin-bottomAdds room below an element for when it is scrolled to the bottom of a scroll box.scroll-margin-inlineSets scroll margin on both inline-direction sides at once: left and right in normal text.scroll-margin-inline-endAdds room at the line end side (right in normal text) when scrolled to.scroll-margin-inline-startAdds room at the line start side (left in normal text) when scrolled to.scroll-margin-leftAdds room to the left of an element for when it is scrolled to the left edge.scroll-margin-rightAdds room to the right of an element for when it is scrolled to the right edge.scroll-margin-topAdds room above an element for when it is scrolled to the top of a scroll box.scroll-paddingInsets the area a scroll box uses for jumps and snapping, so targets clear the edges.scroll-padding-blockSets scroll padding on both block sides at once: top and bottom in normal text.scroll-padding-block-endKeeps the block end (bottom in normal text) clear for jumps and snapping.scroll-padding-block-startKeeps the block start (top in normal text) clear for jumps and snapping.scroll-padding-bottomKeeps a strip at the bottom of a scroll box clear for jumps and snapping.scroll-padding-inlineSets scroll padding on both inline sides at once: left and right in normal text.scroll-padding-inline-endSets scroll padding on the side where a line of text ends inside a scroll container.scroll-padding-inline-startSets scroll padding on the side where a line of text starts inside a scroll container.scroll-padding-leftSets scroll padding on the left side of a scroll container.scroll-padding-rightSets scroll padding on the right side of a scroll container.scroll-padding-topSets top scroll padding so snapped or linked items stop below a fixed header.scroll-snap-alignSets which edge, or the center, of an item lines up when scrolling snaps.scroll-snap-stopDecides whether a fast scroll may skip past a snap point or must stop at it.scroll-snap-typeMakes a scroll container snap to its items and sets the axis and strictness.scrollbar-colorSets the colors of a scrollbar's thumb and track.scrollbar-widthSets how thick a scrollbar is: normal, thin or hidden.
Tables
border-collapseChooses whether table cell borders stay apart or merge into single lines.border-spacingSets the gap between the borders of neighboring table cells.caption-sidePlaces a table's caption above or below the table.empty-cellsDecides whether empty table cells still draw their borders and background.table-layoutChooses how a table works out its column widths: from content or from the first row.
Selectors
Basic selectors
tagMatches every element with the given tag name, such as p or button..classMatches elements whose class attribute contains the given name.#idMatches the one element whose id attribute equals the given name.*Matches every element, whatever its type.[attr]Matches elements by whether an attribute exists or what its value is.&Stands for the outer rule's selector inside a nested CSS rule.A, BApplies one rule to several selectors joined by commas.ns|EPicks elements or attributes by XML namespace, such as SVG inside HTML.
Combinators
A + BMatches B only when it comes right after A under the same parent.A ~ BMatches every B that comes after A under the same parent.A > BMatches B only when it is a direct child of A.A BMatches B anywhere inside A, at any depth.A || BMeant to match table cells that belong to a given column; no browser supports it yet.
Pseudo-classes
:pseudo-classOne-colon keywords that pick elements by state or position, like :hover or :first-child.:activeMatches an element while it is being pressed, such as a button held down.:active-view-transitionMatches the root element while a view transition is running.:active-view-transition-type()Matches the root while a view transition with one of the given types is running.:any-linkMatches any a or area element that has an href, visited or not.:autofillMatches an input after the browser fills it in from saved data.:bufferingMatches an audio or video element that has paused to load more data while playing.:checkedMatches checkboxes, radio buttons and options that are currently selected.:defaultMatches form controls that are the default choice in their group.:definedMatches known elements: all built-in ones, and custom elements once registered.:dir()Matches elements by text direction: left to right or right to left.:disabledMatches form controls that are switched off and can't be used.:emptyMatches elements that have nothing inside them: no child elements and no text.:enabledMatches form controls that can be used, the opposite of :disabled.:firstSelects the first printed page inside an @page rule.:first-childMatches an element that is the first child of its parent.:first-of-typeMatches the first element of its tag among its siblings.:focusMatches the element that currently has keyboard focus.:focus-visibleMatches a focused element when the browser thinks focus should show, mostly via keyboard.:focus-withinMatches an element when it or anything inside it has focus.:fullscreenMatches the element that is currently shown in full screen mode.:futureMatches timed text that comes after the current moment, like caption words not yet spoken.:has()Matches an element when something inside it, or after it, matches the given selector.:has-slottedMatches a slot inside shadow DOM when page content has been placed into it.:hostInside shadow DOM styles, selects the element that hosts the shadow tree.:host()Selects the shadow host only when the host also matches the selector in brackets.:host-context()Selects the shadow host when the host or any of its ancestors matches the given selector.:hoverMatches an element while the mouse pointer is over it.:in-rangeMatches inputs whose current value lies within their min and max limits.:indeterminateMatches form controls in an undecided state, neither on nor off.:invalidMatches form fields whose value breaks their rules, such as required or type="email".:is()Matches an element that fits any selector in the list, written once instead of repeated.:lang()Matches elements by the language of their content, taken from the lang attribute.:last-childMatches an element that is the last child of its parent.:last-of-typeMatches the last element of its tag among its siblings.:leftSelects the left-hand printed pages inside an @page rule.:linkMatches links with an href that the user has not visited yet.:modalMatches an element that blocks the rest of the page until closed, like a modal dialog.:mutedMatches an audio or video element whose sound is turned off.:not()Matches elements that do not fit any selector in the list.:nth-child()Matches elements by their position among siblings, using a number or an An+B pattern.:nth-last-child()Matches elements by their position among siblings, counted from the end.:nth-last-of-type()Matches an element by its place among same-tag siblings, numbered from the last one.:nth-of-type()Matches an element by its place among siblings that have the same tag name.:only-childMatches an element that has no siblings at all.:only-of-typeMatches an element that is the only one of its tag among its siblings.:openMatches details, dialog, select and input elements while they are open.:optionalMatches form fields that do not have the required attribute.:out-of-rangeMatches an input whose value is outside its min and max limits.:pastMatches the parts of timed captions that have already been shown.:pausedMatches an audio or video element that is currently paused.:picture-in-pictureMatches a video that is playing in a small floating picture-in-picture window.:placeholder-shownMatches an input or textarea while its placeholder text is visible.:playingMatches an audio or video element while it is playing.:popover-openMatches an element with the popover attribute while it is showing.:read-onlyMatches elements the user cannot edit, such as an input with readonly.:read-writeMatches elements the user can edit, such as normal inputs and contenteditable areas.:requiredMatches form fields that have the required attribute.:rightInside @page, selects the right-hand pages of a printed, two-sided document.:rootMatches the top element of the document, which is html in a web page.:scopeMatches the element that acts as the starting point of the current scope.:seekingMatches a media element while it is jumping to a new playback position.:stalledMatches a media element whose download has stopped without finishing.:state()Matches a custom element that has turned on a named custom state.:targetMatches the element whose id matches the #fragment at the end of the page address.:user-invalidMatches an invalid form field, but only after the user has interacted with it.:user-validMatches a valid form field, but only after the user has interacted with it.:validMatches a form field, or a form, whose current value passes every check.:visitedMatches a link whose address is already in the user's browsing history.:volume-lockedMatches a media element whose volume the page cannot change, because the device controls it.:where()Matches any element that fits one of the listed selectors, while adding zero priority.
Pseudo-elements
::pseudo-elementDouble-colon keywords that style a part of an element or a generated box, like ::before.::afterAdds a generated box as the last child inside an element.::backdropStyles the layer that sits right behind an element shown in the top layer.::beforeAdds a generated box as the first child inside an element.::checkmarkStyles the check mark shown next to the selected option in a customizable select.::cueStyles the captions and subtitles shown on a video from a WebVTT track.::cue()Styles only the parts of video captions that match the selector in brackets.::details-contentStyles the part of a details element that opens and closes, everything except the summary.::file-selector-buttonStyles the button inside a file input, the one that opens the file picker.::first-letterStyles the first letter of the first line in a block.::first-lineStyles the first line of text in a block, however long that line turns out to be.::grammar-errorStyles text that the browser's grammar checker has marked as wrong.::highlight()Styles text ranges that a script has registered under a highlight name.::markerStyles the bullet or number in front of each list item.::part()Styles an element inside a shadow tree that the component has exposed with a part attribute.::picker-iconStyles the small arrow icon of a customizable select.::picker()Styles the drop-down list that opens from a customizable select.::placeholderStyles the hint text shown inside an empty input or textarea.::selectionStyles the part of the page that the user has selected with the mouse or keyboard.::slotted()Inside a shadow tree, styles page elements that have been placed into a slot.::spelling-errorStyles words that the browser's spell checker has marked as misspelled.::target-textStyles the text a page scrolled to because the address contained a text fragment.::view-transitionThe top layer that holds all the snapshots while a view transition runs.::view-transition-group()Controls the size and position animation of one named part during a view transition.::view-transition-image-pair()The box inside a transition group that holds the old and new snapshots together.::view-transition-new()The live picture of the new state during a view transition.::view-transition-old()The still snapshot of the old state during a view transition.
@rules
@charsetDeclares the text encoding of an external CSS file.@counter-styleDefines your own list marker style, with your own symbols and rules.@containerApplies styles based on the size or style of a parent container.@font-faceDefines a font family name and tells the browser where to find its files.@font-feature-valuesGives friendly names to alternate glyph sets of a specific font.@font-palette-valuesDefines a custom color palette for a color font.@importLoads another stylesheet into the current one.@keyframesNames a series of steps that an animation moves through.@layerGroups rules into named cascade layers whose order decides which wins.@mediaApplies styles only when the device or screen matches a condition.@namespaceDeclares an XML namespace so selectors can target elements from SVG, MathML or other XML.@pageSets the paper size, margins and other settings for printed pages.@propertyRegisters a custom property with a type, an initial value and inheritance.@scopeLimits rules to a part of the page, with an optional lower boundary.@starting-styleGives the starting values for a transition when an element first appears.@supportsApplies styles only when the browser understands a given CSS feature.@view-transitionTurns on animated transitions when moving between pages of the same site.
Units & functions
Units
capEqual to the cap height of the current font: the height of capital letters.chEqual to the advance width of the digit 0 in the current font.cmCentimeters, an absolute length for print. On screen 1cm is fixed at about 37.8px.degDegrees: a full circle is 360deg.dpcmDots per centimeter, a resolution unit. About 37.8dpcm equals 1dppx.dpiDots per inch, a resolution unit. 96dpi equals 1dppx.dppxDots per CSS pixel: how many device pixels make up one CSS pixel.emEqual to the font size of the element; for font-size itself, the parent's font size.exEqual to the x-height of the current font: the height of lowercase letters like x.frA fraction of the free space in a grid container.gradGradians: a full circle is 400grad, so a right angle is 100grad.HzHertz, a frequency unit (cycles per second). No current property uses it.icEqual to the width of the CJK water ideograph (水) in the current font.inInches. In CSS, 1in is exactly 96px, and every absolute unit is built from it.kHzKilohertz: 1kHz is 1000Hz. Defined in CSS but not used by any current property.mmMillimeters: one tenth of a centimeter, an absolute unit mainly for print.msMilliseconds: 1000ms make one second.pcPicas: 1pc is 12pt, which is 1/6 of an inch or 16px.ptPoints: 1pt is 1/72 of an inch, about 1.33px. A common unit for print type.pxThe CSS pixel, the basic fixed unit of length on screen (1/96 of an inch).QQuarter-millimeters: 1Q is 0.25mm, used in some typesetting traditions.radRadians: a full circle is about 6.2832rad (2 times pi).remEqual to the font size of the root html element, usually 16px.sSeconds, a time unit for transitions and animations.turnTurns: 1turn is one full circle, so 0.25turn is a quarter turn.vh1vh is 1% of the viewport height (the large viewport on mobile browsers).vmax1vmax is 1% of the larger side of the viewport, width or height.vmin1vmin is 1% of the smaller side of the viewport, width or height.vw1vw is 1% of the viewport width.xAn alias of dppx: 2x means two device pixels per CSS pixel.%A percentage of some reference size, which depends on the property.lhEqual to the computed line-height of the element.rlhThe line-height of the root html element, the root version of lh.svh1svh is 1% of the small viewport height: the visible area when mobile toolbars are shown.lvh1lvh is 1% of the large viewport height: the visible area when mobile toolbars are hidden.dvh1dvh is 1% of the dynamic viewport height, which changes as mobile toolbars show and hide.svw1svw is 1% of the small viewport width.lvw1lvw is 1% of the large viewport width.dvw1dvw is 1% of the dynamic viewport width, which follows browser UI as it changes.vi1vi is 1% of the viewport size in the root element's inline direction.vb1vb is 1% of the viewport size in the root element's block direction.cqw1cqw is 1% of the width of the nearest size container.cqh1cqh is 1% of the height of the nearest size container.cqi1cqi is 1% of the inline size of the nearest size container.cqb1cqb is 1% of the block size of the nearest size container.cqmin1cqmin is 1% of the smaller of the container's inline and block sizes.cqmax1cqmax is 1% of the larger of the container's inline and block sizes.rchThe width of 0 in the root element's font, the root version of ch.rexThe x-height of the root element's font, the root version of ex.rcapThe cap height of the root element's font, the root version of cap.ricThe ideograph width (水) in the root element's font, the root version of ic.
Units & functions
abs()Returns the absolute value of a number or length, so a negative value becomes positive.acos()Inverse cosine: takes a number from -1 to 1 and returns an angle.asin()Inverse sine: takes a number from -1 to 1 and returns an angle between -90deg and 90deg.atan()Inverse tangent: takes any number and returns an angle between -90deg and 90deg.atan2()Returns the angle of a direction from a vertical and a horizontal value, y first.attr()Reads the value of an HTML attribute on the element and uses it in CSS.blur()A filter function that blurs the element by a given radius.brightness()A filter function that makes the element darker or brighter.calc()Works out a value from a sum, even when the parts use different units.circle()Describes a circle shape for clip-path, shape-outside and similar properties.clamp()Keeps a value between a minimum and a maximum, with a preferred value in the middle.color()Writes a colour in a named colour space such as display-p3, with channels from 0 to 1.color-mix()Mixes two colours in a chosen colour space and returns the blend.conic-gradient()Draws colours that change as you go around a centre point, like the face of a clock.contrast()A filter function that raises or lowers the difference between light and dark parts.cos()Returns the cosine of an angle, a number between -1 and 1.counter()Prints the current value of a CSS counter, usually inside content.counters()Prints all the nested values of a counter joined by a separator, such as 2.1.3.cross-fade()Blends two or more images into one, with a percentage for how much of each shows.cubic-bezier()Defines a custom easing curve for transitions and animations with four numbers.drop-shadow()A filter function that adds a shadow following the real outline of the element.ellipse()Describes an ellipse shape with two radii, for clip-path and shape-outside.env()Reads a value set by the browser or device, such as the safe area around a phone notch.exp()Returns e (about 2.718) raised to the power of the given number.fit-content()Sizes a grid track to its content, but never wider than the limit you give.grayscale()A filter function that removes colour, turning the element partly or fully grey.hsl()Writes a colour by hue angle, saturation and lightness, with optional alpha.hue-rotate()A filter function that shifts every colour around the colour wheel by an angle.hwb()Writes a colour as a hue plus how much white and how much black are mixed in.hypot()Returns the square root of the sum of squares, the straight-line length from its parts.image()A planned function that turns a colour into an image; no browser supports it yet.image-set()Gives a set of images so the browser picks the best one for the screen or file type.inset()Describes a rectangle set in from the edges of the box, with optional rounded corners.invert()A filter function that flips colours to their opposites, like a photo negative.lab()Writes a CIE Lab colour: lightness plus a green-red axis and a blue-yellow axis.layer()Used in @import to put the imported stylesheet into a named cascade layer.lch()Writes a colour by lightness, chroma (colour strength) and hue angle in the CIE LCH space.light-dark()Picks one of two colours based on whether the element uses a light or dark scheme.linear()An easing function made from a list of points, which can draw bounces and other shapes.linear-gradient()Draws colours that change gradually along a straight line.log()Returns the logarithm of a number, natural by default or in a base you give.matrix()Applies a 2D transform written as six numbers: scale, skew and move in one go.matrix3d()Applies a 3D transform written as a 4 by 4 matrix of sixteen numbers.max()Returns the largest of the values you give, so a size never goes below a floor.min()Returns the smallest of the values you give, so a size never goes above a ceiling.minmax()Gives a grid track a size range between a smallest and a largest value.mod()Returns the remainder of a division, signed like the divisor, so values wrap around.oklab()Writes a color in the OKLab space with a lightness value and two color axes.oklch()Writes a color by lightness, chroma and hue angle in the OKLCH space.opacity()A filter function that makes an element and everything inside it see-through.paint()Uses an image drawn by a CSS Paint worklet, a small script the page registers.palette-mix()Blends two palettes of a color font into a new palette.path()Describes a shape with an SVG path string, for clip-path and offset-path.perspective()Adds depth to a transform so 3D turns look near or far.polygon()Draws a shape from a list of corner points, for clip-path and shape-outside.pow()Raises a number to a power, such as 1.4 to the third.radial-gradient()Makes an image where colors spread out from a center as a circle or an ellipse.ray()Defines a straight line from a start point at an angle, for offset-path.rect()Makes a rectangle from its top, right, bottom and left edge positions, for clip-path.rem()Returns what is left over after dividing one value by another.repeating-conic-gradient()Repeats a set of color stops around a center point, like slices that start over.repeating-linear-gradient()Repeats a band of color stops along a straight line to make stripes.repeating-radial-gradient()Repeats rings of color outward from a center point.rgb()Writes a color from amounts of red, green and blue, with optional alpha.rotate()Turns an element by an angle around a fixed point.rotate3d()Turns an element in 3D around an axis that you point with x, y and z.rotateX()Tips an element forward or back around its horizontal axis.rotateY()Turns an element left or right around its vertical axis, like a door.rotateZ()Turns an element around the axis that points out of the screen, the same as rotate().round()Rounds a value to a multiple of a step, in the direction you choose.saturate()A filter function that makes colors more vivid or more washed out.scale()Makes an element bigger or smaller, on one or both axes.scale3d()Scales an element along the x, y and z axes in one call.scaleX()Stretches or squeezes an element along the horizontal axis only.scaleY()Stretches or squeezes an element along the vertical axis only.scaleZ()Scales the depth of an element along the z axis.sepia()A filter function that gives an element the brown tone of an old photo.sign()Returns -1, 0 or 1 to tell whether a value is negative, zero or positive.sin()Returns the sine of an angle, a number between -1 and 1.skew()Slants an element along the x axis, the y axis, or both.skewX()Slants an element sideways, leaning its vertical edges.skewY()Slants an element up or down, leaning its horizontal edges.sqrt()Returns the square root of a number.steps()An easing function that moves an animation in jumps rather than smoothly.symbols()Makes a quick, unnamed counter style for list markers right where you use it.tan()Returns the tangent of an angle, the rise over the run of a slope.translate()Moves an element sideways and up or down without changing the layout.translate3d()Moves an element along the x, y and z axes in one call.translateX()Moves an element left or right only.translateY()Moves an element up or down only.translateZ()Moves an element toward or away from the viewer along the z axis.var()Reads the value of a custom property, with an optional fallback.xywh()Makes a rectangle from an x, y position plus a width and height, for clip-path.