CSS reference
Selectors, layout, type, colour and motion with examples that run in the page.
CSS turns structure into an interface. Start from normal flow, prefer layout primitives such as flexbox and grid over positioning, and name variables by their role rather than their value. Every example below targets a .demo element so you can run it immediately.
Work through the guided lesson, then test yourself with a challenge.
Open courseAt-rules
@charset
@charset "UTF-8";Declares the stylesheet encoding. It must be the very first bytes of the file; UTF-8 is the default.
Open entry@color-profile
@color-profile --name { … }Declares a color profile for color() values.
Open entry@counter-style
@counter-style name { … }Defines a custom list marker style.
Open entry@font-feature-values
@font-feature-values family { … }Defines named font feature values that can be reused.
Open entry@media range syntax
@media (width >= 40rem)Range syntax compares viewport features without min-width/max-width pairs.
Open entry@namespace
@namespace svg url(…);Declares a namespace prefix for XML-based selectors such as SVG.
Open entry@page
@page { … }Styles printed pages, including size and margins.
Open entry@property
@property --name { … }Declares a typed custom property with a syntax, inheritance rule and initial value.
Open entry@scope (at-rule)
@scope (.card) to (.card footer) { … }Scopes rules to a subtree and optionally stops at a boundary.
Open entry@starting-style
@starting-style { … }Defines the initial style for an element entering the document, enabling entry transitions.
Open entry@supports selector()
@supports selector(:has(a))Tests support for a selector rather than a declaration.
Open entry@view-transition
@view-transition { navigation: auto; }Opts a document into cross-document view transitions.
Open entryAt-rules, values and responsive design
@container
@container (min-width: 20rem) { … }Styles children based on the size of their container rather than the viewport.
Open entry@font-face
@font-face { … }Declares a custom font and its source files, weight range and display behaviour.
Open entry@import
@import url("theme.css");Loads another stylesheet. It must come before every other rule except @charset and @layer.
Open entry@layer
@layer base, components, utilities;Orders cascade layers. Later layers win regardless of selector specificity.
Open entry@media query
@media (min-width: 40rem) { … }Applies rules when a media condition matches: width, pointer type, colour scheme or reduced motion.
Open entry@supports
@supports (display: grid) { … }Applies rules only when the browser supports a declaration.
Open entrycalc()
calc(100% - 2rem)Performs maths across units. Operators need spaces around them.
Open entryclamp()
clamp(1rem, 2.5vw, 2rem)Clamps a value between a minimum and a maximum. Perfect for fluid type and spacing.
Open entryColor functions
rgb() / hsl() / oklch()Create colours with channels, alpha or perceptual lightness. oklch() makes consistent palettes easier.
Open entrycontainer-type
container-type: inline-sizeEstablishes a query container so descendants can respond with @container.
Open entryCustom property
--brand: #2f74c0Defines a reusable value. Custom properties inherit and can be changed at runtime.
Open entryLogical properties
margin-inline, padding-blockProperties that follow writing direction instead of physical left and right.
Open entrymin() / max()
min(80vw, 40rem)Returns the smaller or larger of the supplied values, useful for responsive caps.
Open entryvar()
var(--brand, #2f74c0)Reads a custom property with an optional fallback.
Open entryColour and backgrounds
accent-color
accent-color: #2f74c0Tints native form controls such as checkboxes and progress bars.
Open entrybackground-clip
background-clip: textLimits the background to the content box or to the text glyphs.
Open entrybackground-color
background-color: #fff3efPaints the box background behind content and padding.
Open entrybackground-image
background-image: linear-gradient(…), url(…)Paints one or more images or gradients behind content. Layers are comma-separated.
Open entrybackground-position
background-position: centerPlaces the background image inside the box.
Open entrybackground-repeat
background-repeat: no-repeatControls tiling of background images.
Open entrybackground-size
background-size: coverScales a background image: auto, cover, contain or explicit sizes.
Open entrycolor
color: #17130fSets the text colour. Check contrast against the background, not against white.
Open entrycurrentColor
border-color: currentColorA keyword that resolves to the element’s current text colour.
Open entryfilter
filter: blur(2px) brightness(1.1)Applies graphical effects such as blur, brightness, contrast and grayscale.
Open entrymix-blend-mode
mix-blend-mode: multiplyBlends an element with what is behind it.
Open entryopacity
opacity: 0.6Makes an element and all of its children partially transparent. For colours only, use rgb() with alpha.
Open entryFunctions and values
attr()
attr(name)Reads an attribute value. Content support is broad; use with a fallback when needed.
Open entryblur()
blur(radius)Applies a Gaussian blur as a filter.
Open entrybrightness() / contrast()
brightness(amount)Adjusts the brightness or contrast of an element.
Open entrycircle() / ellipse()
circle(radius at position)Defines a circular or elliptical shape for clip-path and shape-outside.
Open entrycolor-mix()
color-mix(in srgb, a 40%, b)Mixes two colours in a chosen colour space.
Open entrycolor() function
color(display-p3 1 0 0)Selects a colour in a specific colour space such as display-p3.
Open entryconic-gradient()
conic-gradient(from angle, stops)A gradient that sweeps around a centre, ideal for charts and pie shapes.
Open entrycounter() / counters()
counter(name, style)Reads a CSS counter for generated numbering.
Open entrycubic-bezier()
cubic-bezier(x1, y1, x2, y2)Defines a custom timing curve for transitions and animations.
Open entrydrop-shadow()
drop-shadow(x y blur color)Adds a shadow that follows the shape of the element, including transparency.
Open entryenv()
env(safe-area-inset-top)Reads device environment values such as safe-area insets.
Open entryfit-content()
fit-content(limit)A track that sizes to its content up to a limit.
Open entrygrayscale() / sepia()
grayscale(1)Removes colour or applies a warm sepia tone.
Open entryhex colour
#2f74c0Six-digit hex for opaque colours, or eight digits for alpha.
Open entryhsl()
hsl(210 60% 50%)Colours by hue, saturation and lightness, which is easier to tweak by hand.
Open entryhue-rotate()
hue-rotate(angle)Shifts hues, handy for recolouring simple graphics.
Open entryhwb()
hwb(210 20% 10%)Colours by hue, whiteness and blackness.
Open entryinset() function
inset(top right bottom left round radius)Defines a rectangular inset shape for clipping.
Open entryinvert()
invert(1)Inverts colours. Useful for dark-mode image treatment.
Open entrylab() / lch()
lch(60% 50 250)Perceptually uniform colour spaces based on CIELAB.
Open entrylight-dark()
light-dark(light, dark)Chooses a colour based on the user’s colour scheme.
Open entrylinear-gradient()
linear-gradient(direction, stops)A gradient along a straight line. Supports hard stops and colour hints.
Open entrymatrix() / matrix3d()
matrix(a, b, c, d, e, f)The compact mathematical form of a transform.
Open entryminmax()
minmax(min, max)Defines a grid track that can grow between a minimum and a maximum.
Open entryoklab() / oklch()
oklch(0.62 0.16 250)Perceptually uniform colour spaces designed for modern displays and palettes.
Open entrypath()
path("M … Z")Uses SVG path data as a clipping or motion shape.
Open entryperspective() function
perspective(distance)Adds depth to a 3D transform applied to the same element.
Open entrypolygon()
polygon(x y, x y, …)Defines an arbitrary polygon for clip-path.
Open entryradial-gradient()
radial-gradient(shape, stops)A gradient that radiates from a centre point.
Open entryrepeat()
repeat(count, tracks)Repeats a grid track list, optionally auto-fitting to the container.
Open entryrepeating-linear-gradient()
repeating-linear-gradient(...)Repeats a linear gradient, great for stripes and patterns.
Open entryrgb() / rgba()
rgb(47 116 192 / 0.8)Colours with red, green, blue channels and optional alpha.
Open entryrotate() function
rotate(angle)Rotates an element around its transform origin.
Open entrysaturate()
saturate(amount)Changes colour saturation.
Open entryscale() function
scale(x, y)Scales an element around its transform origin.
Open entrysteps()
steps(count, jump-term)A stepped timing function, perfect for sprite frames and mechanical motion.
Open entrytranslate() function
translate(x, y)Moves an element without affecting layout. Part of the transform functions.
Open entrytransparent
transparentA fully transparent colour, equivalent to rgb(0 0 0 / 0).
Open entryurl()
url(path)References an external resource such as an image or font.
Open entryInteraction and accessibility
Colour scheme
color-scheme: darkTells the browser which native control colours to use, such as scrollbars and form fields.
Open entrycursor
cursor: pointerChanges the pointer shape. Use it on interactive elements, and not-allowed on disabled controls.
Open entryFilter on focus
outline via :focus-visibleVisible focus is an accessibility requirement. Never set outline: none without a replacement.
Open entryForced colours
@media (forced-colors: active)Adjusts styles when the operating system forces high-contrast colours.
Open entrypointer-events
pointer-events: noneMakes an element ignore pointer input. Not a substitute for disabling a button.
Open entryScroll behaviour
scroll-behavior: smoothMakes in-page scrolling animate. Pair it with reduced-motion media queries.
Open entryLayout
align-content
align-content: flex-startAligns wrapped lines on the cross axis when there is extra space.
Open entryalign-items
align-items: centerAligns items on the cross axis of a flex container.
Open entryalign-self
align-self: flex-endOverrides align-items for a single flex item.
Open entryclear
clear: bothPrevents an element from sitting beside a floated element.
Open entrydisplay
display: block | flex | grid | noneSelects the layout model for an element and its children. display:none removes it from layout and accessibility.
Open entryflex
display: flexLays children out in one dimension and distributes free space along the main axis.
Open entryflex-basis
flex-basis: 12remThe starting size of a flex item before growth or shrinking.
Open entryflex-direction
flex-direction: row | columnSets the main axis: row, row-reverse, column or column-reverse.
Open entryflex-grow
flex-grow: 1How much a flex item grows when there is free space.
Open entryflex-shrink
flex-shrink: 0Whether a flex item may shrink when space is tight. Prevent shrinking on icons and buttons.
Open entryflex-wrap
flex-wrap: wrapAllows items to move onto new lines instead of shrinking forever.
Open entryfloat
float: leftPushes an element to one side and lets text wrap. Modern layout should use flexbox or grid.
Open entrygap
gap: 16pxSpace between grid or flex items. Removes the need for margin hacks.
Open entrygrid
display: gridTwo-dimensional layout with explicit rows and columns.
Open entrygrid-column
grid-column: 1 / -1Places an item across columns. Negative line numbers count from the end.
Open entrygrid-row
grid-row: span 2Places an item across rows.
Open entrygrid-template-areas
grid-template-areas: "a b"Names grid regions so children can be placed by area.
Open entrygrid-template-columns
grid-template-columns: repeat(3, 1fr)Defines the column track list. repeat(auto-fit, minmax(12rem, 1fr)) is a responsive default.
Open entrygrid-template-rows
grid-template-rows: auto 1frDefines the row track list.
Open entryInset
inset: 0Shorthand for top, right, bottom and left. inset:0 stretches an absolutely positioned element.
Open entryjustify-content
justify-content: space-betweenDistributes items along the main axis.
Open entryorder
order: -1Changes visual order without changing DOM order. Do not reorder focusable content unpredictably.
Open entryplace-content
place-content: centerShorthand for align-content and justify-content.
Open entryplace-items
place-items: centerShorthand for align-items and justify-items in grid or flex.
Open entryposition
position: relative | absolute | fixed | stickyRemoves an element from normal flow in all modes except relative and sticky.
Open entryz-index
z-index: 10Orders positioned or flex/grid items on the stacking axis. It only works where stacking applies.
Open entryMore selectors
::backdrop
::backdropStyles the backdrop behind a modal dialog or a fullscreen element.
Open entry::file-selector-button
::file-selector-buttonStyles the button inside a file input.
Open entry::first-letter
::first-letterStyles the first letter for drop caps and editorial treatment.
Open entry::first-line
::first-lineStyles the first line of a block. The exact text can change with the viewport.
Open entry::marker
::markerStyles list markers and summary markers.
Open entry::part()
::part(name)Styles a named part exposed by a web component.
Open entry::slotted()
::slotted(selector)Styles light-DOM content projected into a slot from inside a shadow tree.
Open entry::target-text
::target-textStyles the text highlighted by a URL text fragment.
Open entry:autofill
:autofillMatches fields the browser has autofilled. Style it carefully because browser defaults are strong.
Open entry:default
:defaultMatches the default option or the default submit button of a form.
Open entry:dir()
:dir(rtl)Matches elements by text direction, including inherited direction.
Open entry:first-of-type / :last-of-type
:first-of-typeMatches by position among siblings of the same tag.
Open entry:in-range / :out-of-range
:in-rangeMatches number and date inputs whose value is inside or outside the min and max.
Open entry:lang()
:lang(bn)Matches elements in a given language, including inherited language.
Open entry:nth-last-child()
:nth-last-child(2)Counts from the end of the sibling list.
Open entry:nth-last-of-type()
:nth-last-of-type(1)Counts from the end among siblings of the same tag.
Open entry:only-child
:only-childMatches an element that is the only child of its parent.
Open entry:only-of-type
:only-of-typeMatches an element that is the only sibling of its type.
Open entry:placeholder-shown
:placeholder-shownMatches an input or textarea while its placeholder is visible, which means it is empty.
Open entry:read-only / :read-write
:read-writeMatches elements whose content can be edited.
Open entry:required / :optional
:requiredMatches form controls based on the required attribute.
Open entry:root
:rootMatches the document root, usually html. The standard place to declare design tokens.
Open entry:scope
:scopeMatches the element a selector is scoped to. Useful inside components and querySelector calls.
Open entry:target
:targetMatches the element whose id is in the URL fragment.
Open entry:user-invalid
:user-invalidMatches a field after the user has interacted and the value is invalid. Better than :invalid for UX.
Open entryAttribute operators
[href^="https"]Attribute selectors support =, ~=, |=, ^=, $= and *=.
Open entrySelector list
h1, h2, h3Applies one rule to several selectors. A single invalid selector invalidates the whole list unless :is() is used.
Open entryMotion and transforms
@keyframes
@keyframes name { … }Defines the intermediate steps of an animation.
Open entryanimation
animation: name 1s ease infiniteShorthand for animating keyframes: name, duration, timing, delay, iteration and direction.
Open entryanimation-duration
animation-duration: 300msHow long one animation cycle lasts.
Open entryanimation-iteration-count
animation-iteration-count: infiniteHow many times the animation repeats. Prefer short, finite animations for attention.
Open entryanimation-name
animation-name: pulseSelects which keyframes block to run.
Open entryperspective
perspective: 600pxAdds depth to 3D transforms applied to children.
Open entryprefers-reduced-motion
@media (prefers-reduced-motion: reduce)Respects users who ask the operating system to reduce motion. Disable non-essential animation here.
Open entrytransform
transform: translateY(-4px) scale(1.02)Moves, rotates, scales or skews an element without affecting layout. Multiple functions apply in order.
Open entrytransform-origin
transform-origin: top leftSets the anchor point for transforms.
Open entrytransition
transition: 160ms easeAnimates changes to animatable properties when their value changes.
Open entrytransition-duration
transition-duration: 200msHow long a transition takes. UI feedback usually lands between 120ms and 260ms.
Open entrytransition-property
transition-property: opacity, transformChooses which properties animate. Avoid transition: all because it animates unintended changes.
Open entrytransition-timing-function
transition-timing-function: ease-outThe acceleration curve. ease-out feels responsive for entrances and hover states.
Open entrywill-change
will-change: transformHints that a property will animate so the browser can optimise ahead. Use temporarily, never as a blanket rule.
Open entryProperties — Compositing and Blending
Properties — CSS Anchor Positioning
anchor-name
anchor-name: none | <dashed-ident>#The CSS anchor-name property. Initial value: none. Not inherited.
Open entryanchor-scope
anchor-scope: none | all | <dashed-ident>#The CSS anchor-scope property. Initial value: none. Not inherited.
Open entrybottom
bottom: auto | <length-percentage> | <anchor()> | <anchor-size()>The CSS bottom property. Initial value: auto. Not inherited.
Open entryleft
left: auto | <length-percentage> | <anchor()> | <anchor-size()>The CSS left property. Initial value: auto. Not inherited.
Open entrymargin-bottom
margin-bottom: <length-percentage> | auto | <anchor-size()>The CSS margin-bottom property. Initial value: 0. Not inherited.
Open entrymargin-left
margin-left: <length-percentage> | auto | <anchor-size()>The CSS margin-left property. Initial value: 0. Not inherited.
Open entrymargin-right
margin-right: <length-percentage> | auto | <anchor-size()>The CSS margin-right property. Initial value: 0. Not inherited.
Open entrymargin-top
margin-top: <length-percentage> | auto | <anchor-size()>The CSS margin-top property. Initial value: 0. Not inherited.
Open entryposition-anchor
position-anchor: normal | auto | none | <anchor-name> | match-parentThe CSS position-anchor property. Initial value: normal. Not inherited.
Open entryposition-area
position-area: none | <position-area>The CSS position-area property. Initial value: none. Not inherited.
Open entryposition-try
position-try: <'position-try-order'>? <'position-try-fallbacks'>The CSS position-try property. Initial value: position-try-fallbacks,position-try-order. Not inherited.
Open entryposition-try-fallbacks
position-try-fallbacks: none | [ [<dashed-ident> || <try-tactic>] | <'position-area'> ]#The CSS position-try-fallbacks property. Initial value: none. Not inherited.
Open entryposition-try-order
position-try-order: normal | <try-size>The CSS position-try-order property. Initial value: normal. Not inherited.
Open entryposition-visibility
position-visibility: always | [ anchors-valid || anchors-visible || no-overflow ]The CSS position-visibility property. Initial value: anchors-visible. Not inherited.
Open entryright
right: auto | <length-percentage> | <anchor()> | <anchor-size()>The CSS right property. Initial value: auto. Not inherited.
Open entrytop
top: auto | <length-percentage> | <anchor()> | <anchor-size()>The CSS top property. Initial value: auto. Not inherited.
Open entryProperties — CSS Animations
animation-composition
animation-composition: <single-animation-composition>#The CSS animation-composition property. Initial value: replace. Not inherited.
Open entryanimation-delay
animation-delay: <time>#The CSS animation-delay property. Initial value: 0s. Not inherited.
Open entryanimation-direction
animation-direction: <single-animation-direction>#The CSS animation-direction property. Initial value: normal. Not inherited.
Open entryanimation-fill-mode
animation-fill-mode: <single-animation-fill-mode>#The CSS animation-fill-mode property. Initial value: none. Not inherited.
Open entryanimation-play-state
animation-play-state: <single-animation-play-state>#The CSS animation-play-state property. Initial value: running. Not inherited.
Open entryanimation-timeline
animation-timeline: <single-animation-timeline>#The CSS animation-timeline property. Initial value: auto. Not inherited.
Open entryanimation-timing-function
animation-timing-function: <easing-function>#The CSS animation-timing-function property. Initial value: ease. Not inherited.
Open entryanimation-trigger
animation-trigger: [ none | [ <dashed-ident> <animation-action>+ ]+ ]#The CSS animation-trigger property. Initial value: none. Not inherited.
Open entrytimeline-trigger
timeline-trigger: none | [ <'timeline-trigger-name'> <'timeline-trigger-source'> <'timeline-trigger-activation-range'> [ '/' <'timeline-trigger-active-range'> ]? ]#The CSS timeline-trigger property. Initial value: timeline-trigger-name,timeline-trigger-source,timeline-trigger-activation-range,timeline-trigger-active-range. Not inherited.
Open entrytimeline-trigger-activation-range
timeline-trigger-activation-range: [ <'timeline-trigger-activation-range-start'> <'timeline-trigger-activation-range-end'>? ]#The CSS timeline-trigger-activation-range property. Initial value: timeline-trigger-activation-range-start,timeline-trigger-activation-range-end. Not inherited.
Open entrytimeline-trigger-activation-range-end
timeline-trigger-activation-range-end: [ normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#The CSS timeline-trigger-activation-range-end property. Initial value: normal. Not inherited.
Open entrytimeline-trigger-activation-range-start
timeline-trigger-activation-range-start: [ normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#The CSS timeline-trigger-activation-range-start property. Initial value: normal. Not inherited.
Open entrytimeline-trigger-active-range
timeline-trigger-active-range: [ <'timeline-trigger-active-range-start'> <'timeline-trigger-active-range-end'>? ]#The CSS timeline-trigger-active-range property. Initial value: timeline-trigger-active-range-start,timeline-trigger-active-range-end. Not inherited.
Open entrytimeline-trigger-active-range-end
timeline-trigger-active-range-end: [ auto | normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#The CSS timeline-trigger-active-range-end property. Initial value: auto. Not inherited.
Open entrytimeline-trigger-active-range-start
timeline-trigger-active-range-start: [ auto | normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#The CSS timeline-trigger-active-range-start property. Initial value: auto. Not inherited.
Open entrytimeline-trigger-name
timeline-trigger-name: none | <dashed-ident>#The CSS timeline-trigger-name property. Initial value: none. Not inherited.
Open entrytimeline-trigger-source
timeline-trigger-source: <single-animation-timeline>#The CSS timeline-trigger-source property. Initial value: auto. Not inherited.
Open entrytrigger-scope
trigger-scope: none | all | <dashed-ident>#The CSS trigger-scope property. Initial value: none. Not inherited.
Open entryProperties — CSS Backgrounds and Borders
background
background: <bg-layer>#? , <final-bg-layer>The CSS background property. Initial value: background-image,background-position,background-size,background-repeat,background-origin,background-clip,background-attachment,background-color. Not inherited.
Open entrybackground-attachment
background-attachment: <attachment>#The CSS background-attachment property. Initial value: scroll. Not inherited.
Open entrybackground-origin
background-origin: <visual-box>#The CSS background-origin property. Initial value: padding-box. Not inherited.
Open entrybackground-position-x
background-position-x: [ center | [ [ left | right | x-start | x-end ]? <length-percentage>? ]! ]#The CSS background-position-x property. Initial value: 0%. Not inherited.
Open entrybackground-position-y
background-position-y: [ center | [ [ top | bottom | y-start | y-end ]? <length-percentage>? ]! ]#The CSS background-position-y property. Initial value: 0%. Not inherited.
Open entryborder-bottom
border-bottom: <line-width> || <line-style> || <color>The CSS border-bottom property. Initial value: border-bottom-width,border-bottom-style,border-bottom-color. Not inherited.
Open entryborder-bottom-color
border-bottom-color: <'border-top-color'>The CSS border-bottom-color property. Initial value: currentcolor. Not inherited.
Open entryborder-bottom-left-radius
border-bottom-left-radius: <length-percentage [0,∞]>{1,2}The CSS border-bottom-left-radius property. Initial value: 0. Not inherited.
Open entryborder-bottom-right-radius
border-bottom-right-radius: <length-percentage [0,∞]>{1,2}The CSS border-bottom-right-radius property. Initial value: 0. Not inherited.
Open entryborder-bottom-style
border-bottom-style: <line-style>The CSS border-bottom-style property. Initial value: none. Not inherited.
Open entryborder-bottom-width
border-bottom-width: <line-width>The CSS border-bottom-width property. Initial value: medium. Not inherited.
Open entryborder-color
border-color: <color>{1,4}The CSS border-color property. Initial value: border-top-color,border-right-color,border-bottom-color,border-left-color. Not inherited.
Open entryborder-image
border-image: <'border-image-source'> || <'border-image-slice'> [ / <'border-image-width'> | / <'border-image-width'>? / <'border-image-outset'> ]? || <'border-image-repeat'>The CSS border-image property. Initial value: border-image-source,border-image-slice,border-image-width,border-image-outset,border-image-repeat. Not inherited.
Open entryborder-image-outset
border-image-outset: [ <length [0,∞]> | <number [0,∞]> ]{1,4}The CSS border-image-outset property. Initial value: 0. Not inherited.
Open entryborder-image-repeat
border-image-repeat: [ stretch | repeat | round | space ]{1,2}The CSS border-image-repeat property. Initial value: stretch. Not inherited.
Open entryborder-image-slice
border-image-slice: [ <number [0,∞]> | <percentage [0,∞]> ]{1,4} && fill?The CSS border-image-slice property. Initial value: 100%. Not inherited.
Open entryborder-image-source
border-image-source: none | <image>The CSS border-image-source property. Initial value: none. Not inherited.
Open entryborder-image-width
border-image-width: [ <length-percentage [0,∞]> | <number [0,∞]> | auto ]{1,4}The CSS border-image-width property. Initial value: 1. Not inherited.
Open entryborder-left
border-left: <line-width> || <line-style> || <color>The CSS border-left property. Initial value: border-left-width,border-left-style,border-left-color. Not inherited.
Open entryborder-left-color
border-left-color: <color>The CSS border-left-color property. Initial value: currentcolor. Not inherited.
Open entryborder-left-style
border-left-style: <line-style>The CSS border-left-style property. Initial value: none. Not inherited.
Open entryborder-left-width
border-left-width: <line-width>The CSS border-left-width property. Initial value: medium. Not inherited.
Open entryborder-right
border-right: <line-width> || <line-style> || <color>The CSS border-right property. Initial value: border-right-width,border-right-style,border-right-color. Not inherited.
Open entryborder-right-color
border-right-color: <color>The CSS border-right-color property. Initial value: currentcolor. Not inherited.
Open entryborder-right-style
border-right-style: <line-style>The CSS border-right-style property. Initial value: none. Not inherited.
Open entryborder-right-width
border-right-width: <line-width>The CSS border-right-width property. Initial value: medium. Not inherited.
Open entryborder-shape
border-shape: none | [ <basic-shape> <geometry-box>?]{1,2}The CSS border-shape property. Initial value: none. Not inherited.
Open entryborder-style
border-style: <line-style>{1,4}The CSS border-style property. Initial value: border-top-style,border-right-style,border-bottom-style,border-left-style. Not inherited.
Open entryborder-top
border-top: <line-width> || <line-style> || <color>The CSS border-top property. Initial value: border-top-width,border-top-style,border-top-color. Not inherited.
Open entryborder-top-color
border-top-color: <color>The CSS border-top-color property. Initial value: currentcolor. Not inherited.
Open entryborder-top-left-radius
border-top-left-radius: <length-percentage [0,∞]>{1,2}The CSS border-top-left-radius property. Initial value: 0. Not inherited.
Open entryborder-top-right-radius
border-top-right-radius: <length-percentage [0,∞]>{1,2}The CSS border-top-right-radius property. Initial value: 0. Not inherited.
Open entryborder-top-style
border-top-style: <line-style>The CSS border-top-style property. Initial value: none. Not inherited.
Open entryborder-top-width
border-top-width: <line-width>The CSS border-top-width property. Initial value: medium. Not inherited.
Open entryborder-width
border-width: <line-width>{1,4}The CSS border-width property. Initial value: border-top-width,border-right-width,border-bottom-width,border-left-width. Not inherited.
Open entrycorner-block-end-shape
corner-block-end-shape: <corner-shape-value>{1,2}The CSS corner-block-end-shape property. Initial value: corner-end-start-shape,corner-end-end-shape. Not inherited.
Open entrycorner-block-start-shape
corner-block-start-shape: <corner-shape-value>{1,2}The CSS corner-block-start-shape property. Initial value: corner-start-start-shape,corner-start-end-shape. Not inherited.
Open entrycorner-bottom-left-shape
corner-bottom-left-shape: <corner-shape-value>The CSS corner-bottom-left-shape property. Initial value: round. Not inherited.
Open entrycorner-bottom-right-shape
corner-bottom-right-shape: <corner-shape-value>The CSS corner-bottom-right-shape property. Initial value: round. Not inherited.
Open entrycorner-bottom-shape
corner-bottom-shape: <corner-shape-value>{1,2}The CSS corner-bottom-shape property. Initial value: corner-bottom-left-shape,corner-bottom-right-shape. Not inherited.
Open entrycorner-end-end-shape
corner-end-end-shape: <corner-shape-value>The CSS corner-end-end-shape property. Initial value: round. Not inherited.
Open entrycorner-end-start-shape
corner-end-start-shape: <corner-shape-value>The CSS corner-end-start-shape property. Initial value: round. Not inherited.
Open entrycorner-inline-end-shape
corner-inline-end-shape: <corner-shape-value>{1,2}The CSS corner-inline-end-shape property. Initial value: corner-start-end-shape,corner-end-end-shape. Not inherited.
Open entrycorner-inline-start-shape
corner-inline-start-shape: <corner-shape-value>{1,2}The CSS corner-inline-start-shape property. Initial value: corner-start-start-shape,corner-start-end-shape. Not inherited.
Open entrycorner-left-shape
corner-left-shape: <corner-shape-value>{1,2}The CSS corner-left-shape property. Initial value: corner-top-left-shape,corner-bottom-left-shape. Not inherited.
Open entrycorner-right-shape
corner-right-shape: <corner-shape-value>{1,2}The CSS corner-right-shape property. Initial value: corner-top-right-shape,corner-bottom-right-shape. Not inherited.
Open entrycorner-shape
corner-shape: <corner-shape-value>{1,4}The CSS corner-shape property. Initial value: corner-top-left-shape,corner-top-right-shape,corner-bottom-left-shape,corner-bottom-right-shape. Not inherited.
Open entrycorner-start-end-shape
corner-start-end-shape: <corner-shape-value>The CSS corner-start-end-shape property. Initial value: round. Not inherited.
Open entrycorner-start-start-shape
corner-start-start-shape: <corner-shape-value>The CSS corner-start-start-shape property. Initial value: round. Not inherited.
Open entrycorner-top-left-shape
corner-top-left-shape: <corner-shape-value>The CSS corner-top-left-shape property. Initial value: round. Not inherited.
Open entrycorner-top-right-shape
corner-top-right-shape: <corner-shape-value>The CSS corner-top-right-shape property. Initial value: round. Not inherited.
Open entrycorner-top-shape
corner-top-shape: <corner-shape-value>{1,2}The CSS corner-top-shape property. Initial value: corner-top-left-shape,corner-top-right-shape. Not inherited.
Open entryProperties — CSS Basic User Interface
appearance
appearance: none | auto | <compat-auto> | <compat-special>The CSS appearance property. Initial value: none. Not inherited.
Open entrycaret
caret: <'caret-color'> || <'caret-animation'> || <'caret-shape'>The CSS caret property. Initial value: caret-color,caret-animation,caret-shape. Inherited.
Open entrycaret-animation
caret-animation: auto | manualThe CSS caret-animation property. Initial value: auto. Inherited.
Open entrycaret-color
caret-color: auto | <color>The CSS caret-color property. Initial value: auto. Inherited.
Open entrycaret-shape
caret-shape: auto | bar | block | underscoreThe CSS caret-shape property. Initial value: auto. Inherited.
Open entryfield-sizing
field-sizing: content | fixedThe CSS field-sizing property. Initial value: fixed. Not inherited.
Open entryinteractivity
interactivity: auto | inertThe CSS interactivity property. Initial value: auto. Inherited.
Open entryinterest-delay
interest-delay: <'interest-delay-start'>{1,2}The CSS interest-delay property. Initial value: interest-delay-start,interest-delay-end. Inherited.
Open entryinterest-delay-end
interest-delay-end: normal | <time>The CSS interest-delay-end property. Initial value: normal. Inherited.
Open entryinterest-delay-start
interest-delay-start: normal | <time>The CSS interest-delay-start property. Initial value: normal. Inherited.
Open entryoutline-color
outline-color: auto | <color>The CSS outline-color property. Initial value: auto. Not inherited.
Open entryoutline-offset
outline-offset: <length>The CSS outline-offset property. Initial value: 0. Not inherited.
Open entryoutline-style
outline-style: auto | <outline-line-style>The CSS outline-style property. Initial value: none. Not inherited.
Open entryoutline-width
outline-width: <line-width>The CSS outline-width property. Initial value: medium. Not inherited.
Open entryresize
resize: none | both | horizontal | vertical | block | inlineThe CSS resize property. Initial value: none. Not inherited.
Open entrywindow-drag
window-drag: none | moveThe CSS window-drag property. Initial value: none. Inherited.
Open entryProperties — CSS Box Alignment
column-gap
column-gap: normal | <length-percentage>The CSS column-gap property. Initial value: normal. Not inherited.
Open entryjustify-items
justify-items: normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | legacy | legacy && [ left | right | center ] | anchor-centerThe CSS justify-items property. Initial value: legacy. Not inherited.
Open entryjustify-self
justify-self: auto | normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | anchor-centerThe CSS justify-self property. Initial value: auto. Not inherited.
Open entryplace-self
place-self: <'align-self'> <'justify-self'>?The CSS place-self property. Initial value: align-self,justify-self. Not inherited.
Open entryrow-gap
row-gap: normal | <length-percentage>The CSS row-gap property. Initial value: normal. Not inherited.
Open entryProperties — CSS Box Model
margin-trim
margin-trim: none | in-flow | allThe CSS margin-trim property. Initial value: none. Not inherited.
Open entrypadding-bottom
padding-bottom: <length-percentage [0,∞]>The CSS padding-bottom property. Initial value: 0. Not inherited.
Open entrypadding-left
padding-left: <length-percentage [0,∞]>The CSS padding-left property. Initial value: 0. Not inherited.
Open entrypadding-right
padding-right: <length-percentage [0,∞]>The CSS padding-right property. Initial value: 0. Not inherited.
Open entrypadding-top
padding-top: <length-percentage [0,∞]>The CSS padding-top property. Initial value: 0. Not inherited.
Open entryProperties — CSS Box Sizing
column-height
column-height: auto | <length [0,∞]>The CSS column-height property. Initial value: auto. Not inherited.
Open entrycolumn-width
column-width: auto | <length [0,∞]>The CSS column-width property. Initial value: auto. Not inherited.
Open entrycolumn-wrap
column-wrap: auto | nowrap | wrapThe CSS column-wrap property. Initial value: auto. Not inherited.
Open entrycontain-intrinsic-block-size
contain-intrinsic-block-size: auto? [ none | <length> ]The CSS contain-intrinsic-block-size property. Initial value: none. Not inherited.
Open entrycontain-intrinsic-height
contain-intrinsic-height: auto? [ none | <length> ]The CSS contain-intrinsic-height property. Initial value: none. Not inherited.
Open entrycontain-intrinsic-inline-size
contain-intrinsic-inline-size: auto? [ none | <length> ]The CSS contain-intrinsic-inline-size property. Initial value: none. Not inherited.
Open entrycontain-intrinsic-size
contain-intrinsic-size: [ auto? [ none | <length> ] ]{1,2}The CSS contain-intrinsic-size property. Initial value: contain-intrinsic-width,contain-intrinsic-height. Not inherited.
Open entrycontain-intrinsic-width
contain-intrinsic-width: auto? [ none | <length> ]The CSS contain-intrinsic-width property. Initial value: none. Not inherited.
Open entryframe-sizing
frame-sizing: auto | content-width | content-height | content-block-size | content-inline-sizeThe CSS frame-sizing property. Initial value: auto. Not inherited.
Open entrymax-height
max-height: none | <length-percentage [0,∞]> | min-content | max-content | fit-content | fit-content(<length-percentage [0,∞]>) | <calc-size()> | <anchor-size()>The CSS max-height property. Initial value: none. Not inherited.
Open entrymax-width
max-width: none | <length-percentage [0,∞]> | min-content | max-content | fit-content | fit-content(<length-percentage [0,∞]>) | <calc-size()> | <anchor-size()>The CSS max-width property. Initial value: none. Not inherited.
Open entrymin-height
min-height: auto | <length-percentage [0,∞]> | min-content | max-content | fit-content | fit-content(<length-percentage [0,∞]>) | <calc-size()> | <anchor-size()>The CSS min-height property. Initial value: auto. Not inherited.
Open entrymin-width
min-width: auto | <length-percentage [0,∞]> | min-content | max-content | fit-content | fit-content(<length-percentage [0,∞]>) | <calc-size()> | <anchor-size()>The CSS min-width property. Initial value: auto. Not inherited.
Open entryProperties — CSS Cascading and Inheritance
Properties — CSS Color
color-scheme
color-scheme: normal | [ light | dark | <custom-ident> ]+ && only?The CSS color-scheme property. Initial value: normal. Inherited.
Open entrydynamic-range-limit
dynamic-range-limit: standard | no-limit | constrained | <dynamic-range-limit-mix()>The CSS dynamic-range-limit property. Initial value: no-limit. Inherited.
Open entryforced-color-adjust
forced-color-adjust: auto | none | preserve-parent-colorThe CSS forced-color-adjust property. Initial value: auto. Inherited.
Open entryprint-color-adjust
print-color-adjust: economy | exactThe CSS print-color-adjust property. Initial value: economy. Inherited.
Open entryProperties — CSS Conditional Rules
Properties — CSS Containment
contain
contain: none | strict | content | [ [ size || inline-size ] || layout || style || paint ]The CSS contain property. Initial value: none. Not inherited.
Open entrycontent-visibility
content-visibility: visible | auto | hiddenThe CSS content-visibility property. Initial value: visible. Not inherited.
Open entryProperties — CSS Display
reading-flow
reading-flow: normal | source-order | flex-visual | flex-flow | grid-rows | grid-columns | grid-orderThe CSS reading-flow property. Initial value: normal. Not inherited.
Open entryreading-order
reading-order: <integer>The CSS reading-order property. Initial value: 0. Not inherited.
Open entryvisibility
visibility: visible | hidden | collapseThe CSS visibility property. Initial value: visible. Inherited.
Open entryProperties — CSS Flexible Box Layout
Properties — CSS Fonts
font
font: [ [ <'font-style'> || <font-variant-css2> || <'font-weight'> || <font-width-css3> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'># ] | <system-family-name>The CSS font property. Initial value: font-style,font-variant,font-weight,font-stretch,font-size,line-height,font-family. Inherited.
Open entryfont-feature-settings
font-feature-settings: normal | <feature-tag-value>#The CSS font-feature-settings property. Initial value: normal. Inherited.
Open entryfont-kerning
font-kerning: auto | normal | noneThe CSS font-kerning property. Initial value: auto. Inherited.
Open entryfont-language-override
font-language-override: normal | <string>The CSS font-language-override property. Initial value: normal. Inherited.
Open entryfont-optical-sizing
font-optical-sizing: auto | noneThe CSS font-optical-sizing property. Initial value: auto. Inherited.
Open entryfont-palette
font-palette: normal | light | dark | <palette-identifier> | <palette-mix()>The CSS font-palette property. Initial value: normal. Inherited.
Open entryfont-size-adjust
font-size-adjust: none | [ ex-height | cap-height | ch-width | ic-width | ic-height ]? [ from-font | <number> ]The CSS font-size-adjust property. Initial value: none. Inherited.
Open entryfont-synthesis
font-synthesis: none | [ weight || style || small-caps || position]The CSS font-synthesis property. Initial value: weight style small-caps position . Inherited.
Open entryfont-synthesis-position
font-synthesis-position: auto | noneThe CSS font-synthesis-position property. Initial value: none. Inherited.
Open entryfont-synthesis-small-caps
font-synthesis-small-caps: auto | noneThe CSS font-synthesis-small-caps property. Initial value: auto. Inherited.
Open entryfont-synthesis-style
font-synthesis-style: auto | noneThe CSS font-synthesis-style property. Initial value: auto. Inherited.
Open entryfont-synthesis-weight
font-synthesis-weight: auto | noneThe CSS font-synthesis-weight property. Initial value: auto. Inherited.
Open entryfont-variant
font-variant: normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> || stylistic( <feature-value-name> ) || historical-forms |The CSS font-variant property. Initial value: normal. Inherited.
Open entryfont-variant-alternates
font-variant-alternates: normal | [ stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> )The CSS font-variant-alternates property. Initial value: normal. Inherited.
Open entryfont-variant-caps
font-variant-caps: normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-capsThe CSS font-variant-caps property. Initial value: normal. Inherited.
Open entryfont-variant-east-asian
font-variant-east-asian: normal | [ <east-asian-variant-values> || <east-asian-width-values> || ruby ]The CSS font-variant-east-asian property. Initial value: normal. Inherited.
Open entryfont-variant-emoji
font-variant-emoji: normal | text | emoji | unicodeThe CSS font-variant-emoji property. Initial value: normal. Inherited.
Open entryfont-variant-ligatures
font-variant-ligatures: normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ]The CSS font-variant-ligatures property. Initial value: normal. Inherited.
Open entryfont-variant-position
font-variant-position: normal | sub | superThe CSS font-variant-position property. Initial value: normal. Inherited.
Open entryfont-variation-settings
font-variation-settings: normal | [ <string> <number> ]#The CSS font-variation-settings property. Initial value: normal. Inherited.
Open entryfont-width
font-width: normal | <percentage [0,∞]> | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expandedThe CSS font-width property. Initial value: normal. Inherited.
Open entryProperties — CSS Fragmentation
box-decoration-break
box-decoration-break: slice | cloneThe CSS box-decoration-break property. Initial value: slice. Not inherited.
Open entrybreak-after
break-after: auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | regionThe CSS break-after property. Initial value: auto. Not inherited.
Open entrybreak-before
break-before: auto | avoid | always | all | avoid-page | page | left | right | recto | verso | avoid-column | column | avoid-region | regionThe CSS break-before property. Initial value: auto. Not inherited.
Open entrybreak-inside
break-inside: auto | avoid | avoid-page | avoid-column | avoid-regionThe CSS break-inside property. Initial value: auto. Not inherited.
Open entryorphans
orphans: <integer>The CSS orphans property. Initial value: 2. Inherited.
Open entrywidows
widows: <integer>The CSS widows property. Initial value: 2. Inherited.
Open entryProperties — CSS Generated Content
content
content: normal | none | [ <content-replacement> | <content-list> ] [ / [ <string> | <counter> | <attr()> ]+ ]?The CSS content property. Initial value: normal. Not inherited.
Open entryquotes
quotes: none | auto | [ <string> <string> ]+The CSS quotes property. Initial value: dependsOnUserAgent. Inherited.
Open entryProperties — CSS Grid Layout
grid-area
grid-area: <grid-line> [ / <grid-line> ]{0,3}The CSS grid-area property. Initial value: grid-row-start,grid-column-start,grid-row-end,grid-column-end. Not inherited.
Open entrygrid-auto-columns
grid-auto-columns: <track-size>+The CSS grid-auto-columns property. Initial value: auto. Not inherited.
Open entrygrid-auto-flow
grid-auto-flow: [ row | column ] || denseThe CSS grid-auto-flow property. Initial value: row. Not inherited.
Open entrygrid-auto-rows
grid-auto-rows: <track-size>+The CSS grid-auto-rows property. Initial value: auto. Not inherited.
Open entrygrid-column-end
grid-column-end: <grid-line>The CSS grid-column-end property. Initial value: auto. Not inherited.
Open entrygrid-column-start
grid-column-start: <grid-line>The CSS grid-column-start property. Initial value: auto. Not inherited.
Open entrygrid-row-end
grid-row-end: <grid-line>The CSS grid-row-end property. Initial value: auto. Not inherited.
Open entrygrid-row-start
grid-row-start: <grid-line>The CSS grid-row-start property. Initial value: auto. Not inherited.
Open entrygrid-template
grid-template: none | [ <'grid-template-rows'> / <'grid-template-columns'> ] | [ <line-names>? <string> <track-size>? <line-names>? ]+ [ / <explicit-track-list> ]?The CSS grid-template property. Initial value: grid-template-columns,grid-template-rows,grid-template-areas. Not inherited.
Open entryProperties — CSS Images
image-orientation
image-orientation: from-image | <angle> | [ <angle>? flip ]The CSS image-orientation property. Initial value: from-image. Inherited.
Open entryimage-rendering
image-rendering: auto | crisp-edges | pixelated | smoothThe CSS image-rendering property. Initial value: auto. Inherited.
Open entryimage-resolution
image-resolution: [ from-image || <resolution> ] && snap?The CSS image-resolution property. Initial value: 1dppx. Inherited.
Open entryobject-view-box
object-view-box: none | <basic-shape-rect>The CSS object-view-box property. Initial value: none. Not inherited.
Open entryProperties — CSS Inline
alignment-baseline
alignment-baseline: baseline | alphabetic | ideographic | middle | central | mathematical | text-before-edge | text-after-edgeThe CSS alignment-baseline property. Initial value: baseline. Not inherited.
Open entrybaseline-shift
baseline-shift: <length-percentage> | sub | super | baselineThe CSS baseline-shift property. Initial value: 0. Not inherited.
Open entrybaseline-source
baseline-source: auto | first | lastThe CSS baseline-source property. Initial value: auto. Not inherited.
Open entrydominant-baseline
dominant-baseline: auto | text-bottom | alphabetic | ideographic | middle | central | mathematical | hanging | text-topThe CSS dominant-baseline property. Initial value: auto. Inherited.
Open entryinitial-letter
initial-letter: normal | [ <number> <integer>? ]The CSS initial-letter property. Initial value: normal. Not inherited.
Open entryinitial-letter-align
initial-letter-align: [ auto | alphabetic | hanging | ideographic ]The CSS initial-letter-align property. Initial value: auto. Not inherited.
Open entrytext-box
text-box: normal | <'text-box-trim'> || <'text-box-edge'>The CSS text-box property. Initial value: normal. Not inherited.
Open entrytext-box-edge
text-box-edge: auto | <text-edge>The CSS text-box-edge property. Initial value: auto. Not inherited.
Open entrytext-box-trim
text-box-trim: none | trim-start | trim-end | trim-bothThe CSS text-box-trim property. Initial value: none. Not inherited.
Open entryvertical-align
vertical-align: baseline | sub | super | text-top | text-bottom | middle | top | bottom | <percentage> | <length>The CSS vertical-align property. Initial value: baseline. Not inherited.
Open entryProperties — CSS Lists and Counters
counter-increment
counter-increment: [ <counter-name> <integer>? ]+ | noneThe CSS counter-increment property. Initial value: none. Not inherited.
Open entrycounter-reset
counter-reset: [ <counter-name> <integer>? | <reversed-counter-name> <integer>? ]+ | noneThe CSS counter-reset property. Initial value: none. Not inherited.
Open entrycounter-set
counter-set: [ <counter-name> <integer>? ]+ | noneThe CSS counter-set property. Initial value: none. Not inherited.
Open entrylist-style-image
list-style-image: <image> | noneThe CSS list-style-image property. Initial value: none. Inherited.
Open entrylist-style-position
list-style-position: inside | outsideThe CSS list-style-position property. Initial value: outside. Inherited.
Open entrylist-style-type
list-style-type: <counter-style> | <string> | noneThe CSS list-style-type property. Initial value: disc. Inherited.
Open entryProperties — CSS Logical Properties and Values
block-size
block-size: <'width'>The CSS block-size property. Initial value: auto. Not inherited.
Open entryborder-block
border-block: <'border-top'>The CSS border-block property. Initial value: border-block-width,border-block-style,border-block-color. Not inherited.
Open entryborder-block-color
border-block-color: <'border-top-color'>{1,2}The CSS border-block-color property. Initial value: border-block-start-color,border-block-end-color. Not inherited.
Open entryborder-block-end
border-block-end: <'border-top'>The CSS border-block-end property. Initial value: border-block-end-width,border-block-end-style,border-block-end-color. Not inherited.
Open entryborder-block-end-color
border-block-end-color: <'border-top-color'>The CSS border-block-end-color property. Initial value: currentcolor. Not inherited.
Open entryborder-block-end-style
border-block-end-style: <'border-top-style'>The CSS border-block-end-style property. Initial value: none. Not inherited.
Open entryborder-block-end-width
border-block-end-width: <'border-top-width'>The CSS border-block-end-width property. Initial value: medium. Not inherited.
Open entryborder-block-start
border-block-start: <'border-top'>The CSS border-block-start property. Initial value: border-block-start-width,border-block-start-style,border-block-start-color. Not inherited.
Open entryborder-block-start-color
border-block-start-color: <'border-top-color'>The CSS border-block-start-color property. Initial value: currentcolor. Not inherited.
Open entryborder-block-start-style
border-block-start-style: <'border-top-style'>The CSS border-block-start-style property. Initial value: none. Not inherited.
Open entryborder-block-start-width
border-block-start-width: <'border-top-width'>The CSS border-block-start-width property. Initial value: medium. Not inherited.
Open entryborder-block-style
border-block-style: <'border-top-style'>{1,2}The CSS border-block-style property. Initial value: border-block-start-style,border-block-end-style. Not inherited.
Open entryborder-block-width
border-block-width: <'border-top-width'>{1,2}The CSS border-block-width property. Initial value: border-block-start-width,border-block-end-width. Not inherited.
Open entryborder-end-end-radius
border-end-end-radius: <'border-top-left-radius'>The CSS border-end-end-radius property. Initial value: 0. Not inherited.
Open entryborder-end-start-radius
border-end-start-radius: <'border-top-left-radius'>The CSS border-end-start-radius property. Initial value: 0. Not inherited.
Open entryborder-inline
border-inline: <'border-top'>The CSS border-inline property. Initial value: border-inline-width,border-inline-style,border-inline-color. Not inherited.
Open entryborder-inline-color
border-inline-color: <'border-top-color'>{1,2}The CSS border-inline-color property. Initial value: border-inline-start-color,border-inline-end-color. Not inherited.
Open entryborder-inline-end
border-inline-end: <'border-top'>The CSS border-inline-end property. Initial value: border-inline-end-width,border-inline-end-style,border-inline-end-color. Not inherited.
Open entryborder-inline-end-color
border-inline-end-color: <'border-top-color'>The CSS border-inline-end-color property. Initial value: currentcolor. Not inherited.
Open entryborder-inline-end-style
border-inline-end-style: <'border-top-style'>The CSS border-inline-end-style property. Initial value: none. Not inherited.
Open entryborder-inline-end-width
border-inline-end-width: <'border-top-width'>The CSS border-inline-end-width property. Initial value: medium. Not inherited.
Open entryborder-inline-start
border-inline-start: <'border-top'>The CSS border-inline-start property. Initial value: border-inline-start-width,border-inline-start-style,border-inline-start-color. Not inherited.
Open entryborder-inline-start-color
border-inline-start-color: <'border-top-color'>The CSS border-inline-start-color property. Initial value: currentcolor. Not inherited.
Open entryborder-inline-start-style
border-inline-start-style: <'border-top-style'>The CSS border-inline-start-style property. Initial value: none. Not inherited.
Open entryborder-inline-start-width
border-inline-start-width: <'border-top-width'>The CSS border-inline-start-width property. Initial value: medium. Not inherited.
Open entryborder-inline-style
border-inline-style: <'border-top-style'>{1,2}The CSS border-inline-style property. Initial value: border-inline-start-style,border-inline-end-style. Not inherited.
Open entryborder-inline-width
border-inline-width: <'border-top-width'>{1,2}The CSS border-inline-width property. Initial value: border-inline-start-width,border-inline-end-width. Not inherited.
Open entryborder-start-end-radius
border-start-end-radius: <'border-top-left-radius'>The CSS border-start-end-radius property. Initial value: 0. Not inherited.
Open entryborder-start-start-radius
border-start-start-radius: <'border-top-left-radius'>The CSS border-start-start-radius property. Initial value: 0. Not inherited.
Open entryinline-size
inline-size: <'width'>The CSS inline-size property. Initial value: auto. Not inherited.
Open entryinset-block
inset-block: <'top'>{1,2}The CSS inset-block property. Initial value: inset-block-start,inset-block-end. Not inherited.
Open entryinset-block-end
inset-block-end: <'top'>The CSS inset-block-end property. Initial value: auto. Not inherited.
Open entryinset-block-start
inset-block-start: <'top'>The CSS inset-block-start property. Initial value: auto. Not inherited.
Open entryinset-inline
inset-inline: <'top'>{1,2}The CSS inset-inline property. Initial value: inset-inline-start,inset-inline-end. Not inherited.
Open entryinset-inline-end
inset-inline-end: <'top'>The CSS inset-inline-end property. Initial value: auto. Not inherited.
Open entryinset-inline-start
inset-inline-start: <'top'>The CSS inset-inline-start property. Initial value: auto. Not inherited.
Open entrymargin-block
margin-block: <'margin-top'>{1,2}The CSS margin-block property. Initial value: margin-block-start,margin-block-end. Not inherited.
Open entrymargin-block-end
margin-block-end: <'margin-top'>The CSS margin-block-end property. Initial value: 0. Not inherited.
Open entrymargin-block-start
margin-block-start: <'margin-top'>The CSS margin-block-start property. Initial value: 0. Not inherited.
Open entrymargin-inline
margin-inline: <'margin-top'>{1,2}The CSS margin-inline property. Initial value: margin-inline-start,margin-inline-end. Not inherited.
Open entrymargin-inline-end
margin-inline-end: <'margin-top'>The CSS margin-inline-end property. Initial value: 0. Not inherited.
Open entrymargin-inline-start
margin-inline-start: <'margin-top'>The CSS margin-inline-start property. Initial value: 0. Not inherited.
Open entrymax-block-size
max-block-size: <'max-width'>The CSS max-block-size property. Initial value: none. Not inherited.
Open entrymax-inline-size
max-inline-size: <'max-width'>The CSS max-inline-size property. Initial value: none. Not inherited.
Open entrymin-block-size
min-block-size: <'min-width'>The CSS min-block-size property. Initial value: 0. Not inherited.
Open entrymin-inline-size
min-inline-size: <'min-width'>The CSS min-inline-size property. Initial value: 0. Not inherited.
Open entrypadding-block
padding-block: <'padding-top'>{1,2}The CSS padding-block property. Initial value: padding-block-start,padding-block-end. Not inherited.
Open entrypadding-block-end
padding-block-end: <'padding-top'>The CSS padding-block-end property. Initial value: 0. Not inherited.
Open entrypadding-block-start
padding-block-start: <'padding-top'>The CSS padding-block-start property. Initial value: 0. Not inherited.
Open entrypadding-inline
padding-inline: <'padding-top'>{1,2}The CSS padding-inline property. Initial value: padding-inline-start,padding-inline-end. Not inherited.
Open entrypadding-inline-end
padding-inline-end: <'padding-top'>The CSS padding-inline-end property. Initial value: 0. Not inherited.
Open entrypadding-inline-start
padding-inline-start: <'padding-top'>The CSS padding-inline-start property. Initial value: 0. Not inherited.
Open entryProperties — CSS Masking
clip-path
clip-path: <clip-source> | [ <basic-shape> || <geometry-box> ] | noneThe CSS clip-path property. Initial value: none. Not inherited.
Open entryclip-rule
clip-rule: nonzero | evenoddThe CSS clip-rule property. Initial value: nonzero. Inherited.
Open entrymask
mask: <mask-layer>#The CSS mask property. Initial value: mask-image,mask-mode,mask-repeat,mask-position,mask-clip,mask-origin,mask-size,mask-composite. Not inherited.
Open entrymask-border
mask-border: <'mask-border-source'> || <'mask-border-slice'> [ / <'mask-border-width'>? [ / <'mask-border-outset'> ]? ]? || <'mask-border-repeat'> || <'mask-border-mode'>The CSS mask-border property. Initial value: mask-border-mode,mask-border-outset,mask-border-repeat,mask-border-slice,mask-border-source,mask-border-width. Not inherited.
Open entrymask-border-mode
mask-border-mode: luminance | alphaThe CSS mask-border-mode property. Initial value: alpha. Not inherited.
Open entrymask-border-outset
mask-border-outset: [ <length> | <number> ]{1,4}The CSS mask-border-outset property. Initial value: 0. Not inherited.
Open entrymask-border-repeat
mask-border-repeat: [ stretch | repeat | round | space ]{1,2}The CSS mask-border-repeat property. Initial value: stretch. Not inherited.
Open entrymask-border-slice
mask-border-slice: <number-percentage>{1,4} fill?The CSS mask-border-slice property. Initial value: 0. Not inherited.
Open entrymask-border-source
mask-border-source: none | <image>The CSS mask-border-source property. Initial value: none. Not inherited.
Open entrymask-border-width
mask-border-width: [ <length-percentage> | <number> | auto ]{1,4}The CSS mask-border-width property. Initial value: auto. Not inherited.
Open entrymask-clip
mask-clip: [ <coord-box> | no-clip ]#The CSS mask-clip property. Initial value: border-box. Not inherited.
Open entrymask-composite
mask-composite: <compositing-operator>#The CSS mask-composite property. Initial value: add. Not inherited.
Open entrymask-image
mask-image: <mask-reference>#The CSS mask-image property. Initial value: none. Not inherited.
Open entrymask-mode
mask-mode: <masking-mode>#The CSS mask-mode property. Initial value: match-source. Not inherited.
Open entrymask-origin
mask-origin: <coord-box>#The CSS mask-origin property. Initial value: border-box. Not inherited.
Open entrymask-position
mask-position: <position>#The CSS mask-position property. Initial value: 0% 0%. Not inherited.
Open entrymask-repeat
mask-repeat: <repeat-style>#The CSS mask-repeat property. Initial value: repeat. Not inherited.
Open entrymask-size
mask-size: <bg-size>#The CSS mask-size property. Initial value: auto. Not inherited.
Open entrymask-type
mask-type: luminance | alphaThe CSS mask-type property. Initial value: luminance. Not inherited.
Open entryProperties — CSS Mobile Text Size Adjustment
Properties — CSS Multi-column Layout
column-count
column-count: <integer> | autoThe CSS column-count property. Initial value: auto. Not inherited.
Open entrycolumn-fill
column-fill: auto | balanceThe CSS column-fill property. Initial value: balance. Not inherited.
Open entrycolumn-rule
column-rule: <'column-rule-width'> || <'column-rule-style'> || <'column-rule-color'>The CSS column-rule property. Initial value: column-rule-width,column-rule-style,column-rule-color. Not inherited.
Open entrycolumn-rule-color
column-rule-color: <color>The CSS column-rule-color property. Initial value: currentcolor. Not inherited.
Open entrycolumn-rule-style
column-rule-style: <line-style>The CSS column-rule-style property. Initial value: none. Not inherited.
Open entrycolumn-rule-width
column-rule-width: <line-width>The CSS column-rule-width property. Initial value: medium. Not inherited.
Open entrycolumn-span
column-span: none | allThe CSS column-span property. Initial value: none. Not inherited.
Open entrycolumns
columns: [ <'column-width'> || <'column-count'> ] [ / <'column-height'> ]?The CSS columns property. Initial value: column-width,column-count,column-height. Not inherited.
Open entryProperties — CSS Overflow
line-clamp
line-clamp: none | <integer>The CSS line-clamp property. Initial value: none. Not inherited.
Open entrymax-lines
max-lines: none | <integer>The CSS max-lines property. Initial value: none. Not inherited.
Open entryoverflow-block
overflow-block: visible | hidden | clip | scroll | autoThe CSS overflow-block property. Initial value: auto. Not inherited.
Open entryoverflow-clip-margin
overflow-clip-margin: <visual-box> || <length [0,∞]>The CSS overflow-clip-margin property. Initial value: 0px. Not inherited.
Open entryoverflow-inline
overflow-inline: visible | hidden | clip | scroll | autoThe CSS overflow-inline property. Initial value: auto. Not inherited.
Open entryoverflow-x
overflow-x: visible | hidden | clip | scroll | autoThe CSS overflow-x property. Initial value: visible. Not inherited.
Open entryoverflow-y
overflow-y: visible | hidden | clip | scroll | autoThe CSS overflow-y property. Initial value: visible. Not inherited.
Open entryscroll-axis-lock
scroll-axis-lock: auto | noneThe CSS scroll-axis-lock property. Initial value: auto. Not inherited.
Open entryscroll-behavior
scroll-behavior: auto | smoothThe CSS scroll-behavior property. Initial value: auto. Not inherited.
Open entryscroll-marker-group
scroll-marker-group: none | before | afterThe CSS scroll-marker-group property. Initial value: none. Not inherited.
Open entryscroll-target-group
scroll-target-group: none | autoThe CSS scroll-target-group property. Initial value: none. Not inherited.
Open entryscrollbar-gutter
scrollbar-gutter: auto | stable && both-edges?The CSS scrollbar-gutter property. Initial value: auto. Not inherited.
Open entryProperties — CSS Overscroll Behavior
overscroll-behavior
overscroll-behavior: [ contain | none | auto ]{1,2}The CSS overscroll-behavior property. Initial value: auto. Not inherited.
Open entryoverscroll-behavior-block
overscroll-behavior-block: contain | none | autoThe CSS overscroll-behavior-block property. Initial value: auto. Not inherited.
Open entryoverscroll-behavior-inline
overscroll-behavior-inline: contain | none | autoThe CSS overscroll-behavior-inline property. Initial value: auto. Not inherited.
Open entryoverscroll-behavior-x
overscroll-behavior-x: contain | none | autoThe CSS overscroll-behavior-x property. Initial value: auto. Not inherited.
Open entryoverscroll-behavior-y
overscroll-behavior-y: contain | none | autoThe CSS overscroll-behavior-y property. Initial value: auto. Not inherited.
Open entryProperties — CSS Positioned Layout
Properties — CSS Rhythmic Sizing
Properties — CSS Ruby
ruby-align
ruby-align: start | center | space-between | space-aroundThe CSS ruby-align property. Initial value: space-around. Inherited.
Open entryruby-merge
ruby-merge: separate | collapse | autoThe CSS ruby-merge property. Initial value: separate. Inherited.
Open entryruby-overhang
ruby-overhang: auto | noneThe CSS ruby-overhang property. Initial value: auto. Inherited.
Open entryruby-position
ruby-position: [ alternate || [ over | under ] ] | inter-characterThe CSS ruby-position property. Initial value: alternate. Inherited.
Open entryProperties — CSS Scroll Anchoring
Properties — CSS Scroll Snap
scroll-initial-target
scroll-initial-target: none | nearestThe CSS scroll-initial-target property. Initial value: none. Not inherited.
Open entryscroll-margin
scroll-margin: <length>{1,4}The CSS scroll-margin property. Initial value: scroll-margin-bottom,scroll-margin-left,scroll-margin-right,scroll-margin-top. Not inherited.
Open entryscroll-margin-block
scroll-margin-block: <length>{1,2}The CSS scroll-margin-block property. Initial value: scroll-margin-block-start,scroll-margin-block-end. Not inherited.
Open entryscroll-margin-block-end
scroll-margin-block-end: <length>The CSS scroll-margin-block-end property. Initial value: 0. Not inherited.
Open entryscroll-margin-block-start
scroll-margin-block-start: <length>The CSS scroll-margin-block-start property. Initial value: 0. Not inherited.
Open entryscroll-margin-bottom
scroll-margin-bottom: <length>The CSS scroll-margin-bottom property. Initial value: 0. Not inherited.
Open entryscroll-margin-inline
scroll-margin-inline: <length>{1,2}The CSS scroll-margin-inline property. Initial value: scroll-margin-inline-start,scroll-margin-inline-end. Not inherited.
Open entryscroll-margin-inline-end
scroll-margin-inline-end: <length>The CSS scroll-margin-inline-end property. Initial value: 0. Not inherited.
Open entryscroll-margin-inline-start
scroll-margin-inline-start: <length>The CSS scroll-margin-inline-start property. Initial value: 0. Not inherited.
Open entryscroll-margin-left
scroll-margin-left: <length>The CSS scroll-margin-left property. Initial value: 0. Not inherited.
Open entryscroll-margin-right
scroll-margin-right: <length>The CSS scroll-margin-right property. Initial value: 0. Not inherited.
Open entryscroll-margin-top
scroll-margin-top: <length>The CSS scroll-margin-top property. Initial value: 0. Not inherited.
Open entryscroll-padding
scroll-padding: [ auto | <length-percentage> ]{1,4}The CSS scroll-padding property. Initial value: scroll-padding-bottom,scroll-padding-left,scroll-padding-right,scroll-padding-top. Not inherited.
Open entryscroll-padding-block
scroll-padding-block: [ auto | <length-percentage> ]{1,2}The CSS scroll-padding-block property. Initial value: scroll-padding-block-start,scroll-padding-block-end. Not inherited.
Open entryscroll-padding-block-end
scroll-padding-block-end: auto | <length-percentage>The CSS scroll-padding-block-end property. Initial value: auto. Not inherited.
Open entryscroll-padding-block-start
scroll-padding-block-start: auto | <length-percentage>The CSS scroll-padding-block-start property. Initial value: auto. Not inherited.
Open entryscroll-padding-bottom
scroll-padding-bottom: auto | <length-percentage>The CSS scroll-padding-bottom property. Initial value: auto. Not inherited.
Open entryscroll-padding-inline
scroll-padding-inline: [ auto | <length-percentage> ]{1,2}The CSS scroll-padding-inline property. Initial value: scroll-padding-inline-start,scroll-padding-inline-end. Not inherited.
Open entryscroll-padding-inline-end
scroll-padding-inline-end: auto | <length-percentage>The CSS scroll-padding-inline-end property. Initial value: auto. Not inherited.
Open entryscroll-padding-inline-start
scroll-padding-inline-start: auto | <length-percentage>The CSS scroll-padding-inline-start property. Initial value: auto. Not inherited.
Open entryscroll-padding-left
scroll-padding-left: auto | <length-percentage>The CSS scroll-padding-left property. Initial value: auto. Not inherited.
Open entryscroll-padding-right
scroll-padding-right: auto | <length-percentage>The CSS scroll-padding-right property. Initial value: auto. Not inherited.
Open entryscroll-padding-top
scroll-padding-top: auto | <length-percentage>The CSS scroll-padding-top property. Initial value: auto. Not inherited.
Open entryscroll-snap-align
scroll-snap-align: [ none | start | end | center ]{1,2}The CSS scroll-snap-align property. Initial value: none. Not inherited.
Open entryscroll-snap-stop
scroll-snap-stop: normal | alwaysThe CSS scroll-snap-stop property. Initial value: normal. Not inherited.
Open entryscroll-snap-type
scroll-snap-type: none | [ x | y | block | inline | both ] [ mandatory | proximity ]?The CSS scroll-snap-type property. Initial value: none. Not inherited.
Open entryProperties — CSS Scrollbars Styling
Properties — CSS Shapes
shape-image-threshold
shape-image-threshold: <opacity-value>The CSS shape-image-threshold property. Initial value: 0.0. Not inherited.
Open entryshape-margin
shape-margin: <length-percentage>The CSS shape-margin property. Initial value: 0. Not inherited.
Open entryshape-outside
shape-outside: none | [ <shape-box> || <basic-shape> ] | <image>The CSS shape-outside property. Initial value: none. Not inherited.
Open entryProperties — CSS Speech
Properties — CSS Table
border-collapse
border-collapse: separate | collapseThe CSS border-collapse property. Initial value: separate. Inherited.
Open entryborder-spacing
border-spacing: <length>{1,2}The CSS border-spacing property. Initial value: 0. Inherited.
Open entrycaption-side
caption-side: top | bottomThe CSS caption-side property. Initial value: top. Inherited.
Open entryempty-cells
empty-cells: show | hideThe CSS empty-cells property. Initial value: show. Inherited.
Open entrytable-layout
table-layout: auto | fixedThe CSS table-layout property. Initial value: auto. Not inherited.
Open entryProperties — CSS Text
hanging-punctuation
hanging-punctuation: none | [ first || [ force-end | allow-end ] || last ]The CSS hanging-punctuation property. Initial value: none. Inherited.
Open entryhyphenate-character
hyphenate-character: auto | <string>The CSS hyphenate-character property. Initial value: auto. Inherited.
Open entryhyphenate-limit-chars
hyphenate-limit-chars: [ auto | <integer> ]{1,3}The CSS hyphenate-limit-chars property. Initial value: auto. Inherited.
Open entryhyphens
hyphens: none | manual | autoThe CSS hyphens property. Initial value: manual. Inherited.
Open entryline-break
line-break: auto | loose | normal | strict | anywhereThe CSS line-break property. Initial value: auto. Inherited.
Open entrytab-size
tab-size: <integer> | <length>The CSS tab-size property. Initial value: 8. Inherited.
Open entrytext-align-last
text-align-last: auto | start | end | left | right | center | justifyThe CSS text-align-last property. Initial value: auto. Inherited.
Open entrytext-autospace
text-autospace: normal | <autospace> | autoThe CSS text-autospace property. Initial value: normal. Inherited.
Open entrytext-fit
text-fit: [ none | grow | shrink ] [consistent | per-line | per-line-all]? <percentage>?The CSS text-fit property. Initial value: none. Inherited.
Open entrytext-justify
text-justify: auto | inter-character | inter-word | noneThe CSS text-justify property. Initial value: auto. Inherited.
Open entrytext-spacing-trim
text-spacing-trim: space-all | normal | space-first | trim-startThe CSS text-spacing-trim property. Initial value: normal. Inherited.
Open entrytext-wrap
text-wrap: <'text-wrap-mode'> || <'text-wrap-style'>The CSS text-wrap property. Initial value: wrap. Inherited.
Open entrytext-wrap-mode
text-wrap-mode: wrap | nowrapThe CSS text-wrap-mode property. Initial value: wrap. Inherited.
Open entrytext-wrap-style
text-wrap-style: auto | balance | stable | prettyThe CSS text-wrap-style property. Initial value: auto. Inherited.
Open entrywhite-space-collapse
white-space-collapse: collapse | preserve | preserve-breaks | preserve-spaces | break-spacesThe CSS white-space-collapse property. Initial value: collapse. Inherited.
Open entryword-break
word-break: normal | break-all | keep-all | break-word | auto-phraseThe CSS word-break property. Initial value: normal. Inherited.
Open entryword-wrap
word-wrap: normal | break-wordThe CSS word-wrap property. Initial value: normal. Inherited.
Open entryProperties — CSS Text Decoration
text-decoration-color
text-decoration-color: <color>The CSS text-decoration-color property. Initial value: currentcolor. Not inherited.
Open entrytext-decoration-inset
text-decoration-inset: <length-percentage>{1,2} | autoThe CSS text-decoration-inset property. Initial value: 0. Not inherited.
Open entrytext-decoration-line
text-decoration-line: none | [ underline || overline || line-through || blink ] | spelling-error | grammar-errorThe CSS text-decoration-line property. Initial value: none. Not inherited.
Open entrytext-decoration-skip
text-decoration-skip: none | [ objects || [ spaces | [ leading-spaces || trailing-spaces ] ] || edges || box-decoration ]The CSS text-decoration-skip property. Initial value: objects. Inherited.
Open entrytext-decoration-skip-ink
text-decoration-skip-ink: auto | all | noneThe CSS text-decoration-skip-ink property. Initial value: auto. Inherited.
Open entrytext-decoration-style
text-decoration-style: solid | double | dotted | dashed | wavyThe CSS text-decoration-style property. Initial value: solid. Not inherited.
Open entrytext-decoration-thickness
text-decoration-thickness: auto | from-font | <length> | <percentage>The CSS text-decoration-thickness property. Initial value: auto. Not inherited.
Open entrytext-emphasis
text-emphasis: <'text-emphasis-style'> || <'text-emphasis-color'>The CSS text-emphasis property. Initial value: text-emphasis-style,text-emphasis-color. Inherited.
Open entrytext-emphasis-color
text-emphasis-color: <color>The CSS text-emphasis-color property. Initial value: currentcolor. Inherited.
Open entrytext-emphasis-position
text-emphasis-position: auto | [ over | under ] && [ right | left ]?The CSS text-emphasis-position property. Initial value: auto. Inherited.
Open entrytext-emphasis-style
text-emphasis-style: none | [ [ filled | open ] || [ dot | circle | double-circle | triangle | sesame ] ] | <string>The CSS text-emphasis-style property. Initial value: none. Inherited.
Open entrytext-underline-offset
text-underline-offset: auto | <length> | <percentage>The CSS text-underline-offset property. Initial value: auto. Inherited.
Open entrytext-underline-position
text-underline-position: auto | from-font | [ under || [ left | right ] ]The CSS text-underline-position property. Initial value: auto. Inherited.
Open entryProperties — CSS Transforms
backface-visibility
backface-visibility: visible | hiddenThe CSS backface-visibility property. Initial value: visible. Not inherited.
Open entryperspective-origin
perspective-origin: <position>The CSS perspective-origin property. Initial value: 50% 50%. Not inherited.
Open entryrotate
rotate: none | <angle> | [ x | y | z | <number>{3} ] && <angle>The CSS rotate property. Initial value: none. Not inherited.
Open entryscale
scale: none | [ <number> | <percentage> ]{1,3}The CSS scale property. Initial value: none. Not inherited.
Open entrytransform-box
transform-box: content-box | border-box | fill-box | stroke-box | view-boxThe CSS transform-box property. Initial value: view-box. Not inherited.
Open entrytransform-style
transform-style: flat | preserve-3dThe CSS transform-style property. Initial value: flat. Not inherited.
Open entrytranslate
translate: none | <length-percentage> [ <length-percentage> <length>? ]?The CSS translate property. Initial value: none. Not inherited.
Open entryProperties — CSS Transitions
Properties — CSS Values and Units
Properties — CSS View Transitions
view-transition-class
view-transition-class: none | <custom-ident>+The CSS view-transition-class property. Initial value: none. Not inherited.
Open entryview-transition-name
view-transition-name: none | <custom-ident> | match-elementThe CSS view-transition-name property. Initial value: none. Not inherited.
Open entryview-transition-scope
view-transition-scope: none | allThe CSS view-transition-scope property. Initial value: none. Not inherited.
Open entryProperties — CSS Viewport
Properties — CSS Writing Modes
direction
direction: ltr | rtlThe CSS direction property. Initial value: ltr. Inherited.
Open entrytext-combine-upright
text-combine-upright: none | all | [ digits <integer>? ]The CSS text-combine-upright property. Initial value: none. Inherited.
Open entrytext-orientation
text-orientation: mixed | upright | sidewaysThe CSS text-orientation property. Initial value: mixed. Inherited.
Open entryunicode-bidi
unicode-bidi: normal | embed | isolate | bidi-override | isolate-override | plaintextThe CSS unicode-bidi property. Initial value: normal. Not inherited.
Open entrywriting-mode
writing-mode: horizontal-tb | vertical-rl | vertical-lr | sideways-rl | sideways-lrThe CSS writing-mode property. Initial value: horizontal-tb. Inherited.
Open entryProperties — Filter Effects
backdrop-filter
backdrop-filter: none | <filter-value-list>The CSS backdrop-filter property. Initial value: none. Not inherited.
Open entrycolor-interpolation-filters
color-interpolation-filters: auto | sRGB | linearRGBThe CSS color-interpolation-filters property. Initial value: linearRGB. Inherited.
Open entryflood-color
flood-color: <color>The CSS flood-color property. Initial value: black. Not inherited.
Open entryflood-opacity
flood-opacity: <'opacity'>The CSS flood-opacity property. Initial value: black. Not inherited.
Open entrylighting-color
lighting-color: <color>The CSS lighting-color property. Initial value: white. Not inherited.
Open entryProperties — MathML
math-depth
math-depth: auto-add | add(<integer>) | <integer>The CSS math-depth property. Initial value: 0. Inherited.
Open entrymath-shift
math-shift: normal | compactThe CSS math-shift property. Initial value: normal. Inherited.
Open entrymath-style
math-style: normal | compactThe CSS math-style property. Initial value: normal. Inherited.
Open entryProperties — Motion Path
offset
offset: [ <'offset-position'>? [ <'offset-path'> [ <'offset-distance'> || <'offset-rotate'> ]? ]? ]! [ / <'offset-anchor'> ]?The CSS offset property. Initial value: offset-position,offset-path,offset-distance,offset-anchor,offset-rotate. Not inherited.
Open entryoffset-anchor
offset-anchor: auto | <position>The CSS offset-anchor property. Initial value: auto. Not inherited.
Open entryoffset-distance
offset-distance: <length-percentage>The CSS offset-distance property. Initial value: 0. Not inherited.
Open entryoffset-path
offset-path: none | <offset-path> || <coord-box>The CSS offset-path property. Initial value: none. Not inherited.
Open entryoffset-position
offset-position: normal | auto | <position>The CSS offset-position property. Initial value: normal. Not inherited.
Open entryoffset-rotate
offset-rotate: [ auto | reverse ] || <angle>The CSS offset-rotate property. Initial value: auto. Not inherited.
Open entryProperties — Pointer Events
Properties — Scalable Vector Graphics
cx
cx: <length> | <percentage>The CSS cx property. Initial value: 0. Not inherited.
Open entrycy
cy: <length> | <percentage>The CSS cy property. Initial value: 0. Not inherited.
Open entryd
d: none | path(<string>)The CSS d property. Initial value: none. Not inherited.
Open entryfill
fill: <paint>The CSS fill property. Initial value: black. Inherited.
Open entryfill-opacity
fill-opacity: <'opacity'>The CSS fill-opacity property. Initial value: 1. Inherited.
Open entryfill-rule
fill-rule: nonzero | evenoddThe CSS fill-rule property. Initial value: nonzero. Inherited.
Open entrymarker-end
marker-end: none | <url>The CSS marker-end property. Initial value: none. Inherited.
Open entrymarker-mid
marker-mid: none | <url>The CSS marker-mid property. Initial value: none. Inherited.
Open entrymarker-start
marker-start: none | <url>The CSS marker-start property. Initial value: none. Inherited.
Open entrypaint-order
paint-order: normal | [ fill || stroke || markers ]The CSS paint-order property. Initial value: normal. Inherited.
Open entrypath-length
path-length: none | <length> [0,∞]The CSS path-length property. Initial value: none. Not inherited.
Open entryr
r: <length> | <percentage>The CSS r property. Initial value: 0. Not inherited.
Open entryrx
rx: <length-percentage> | autoThe CSS rx property. Initial value: auto. Not inherited.
Open entryry
ry: <length-percentage> | autoThe CSS ry property. Initial value: auto. Not inherited.
Open entryshape-rendering
shape-rendering: auto | optimizeSpeed | crispEdges | geometricPrecisionThe CSS shape-rendering property. Initial value: auto. Inherited.
Open entrystop-color
stop-color: <'color'>The CSS stop-color property. Initial value: black. Not inherited.
Open entrystop-opacity
stop-opacity: <'opacity'>The CSS stop-opacity property. Initial value: black. Not inherited.
Open entrystroke
stroke: <paint>The CSS stroke property. Initial value: stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width. Inherited.
Open entrystroke-color
stroke-color: <color>The CSS stroke-color property. Initial value: transparent. Inherited.
Open entrystroke-dasharray
stroke-dasharray: none | <dasharray>The CSS stroke-dasharray property. Initial value: none. Inherited.
Open entrystroke-dashoffset
stroke-dashoffset: <length-percentage> | <number>The CSS stroke-dashoffset property. Initial value: 0. Inherited.
Open entrystroke-linecap
stroke-linecap: butt | round | squareThe CSS stroke-linecap property. Initial value: butt. Inherited.
Open entrystroke-linejoin
stroke-linejoin: miter | miter-clip | round | bevel | arcsThe CSS stroke-linejoin property. Initial value: miter. Inherited.
Open entrystroke-miterlimit
stroke-miterlimit: <number>The CSS stroke-miterlimit property. Initial value: 4. Inherited.
Open entrystroke-opacity
stroke-opacity: <'opacity'>The CSS stroke-opacity property. Initial value: 1. Inherited.
Open entrystroke-width
stroke-width: <length-percentage> | <number>The CSS stroke-width property. Initial value: 1px. Inherited.
Open entrytext-anchor
text-anchor: start | middle | endThe CSS text-anchor property. Initial value: start. Inherited.
Open entrytext-rendering
text-rendering: auto | optimizeSpeed | optimizeLegibility | geometricPrecisionThe CSS text-rendering property. Initial value: auto. Inherited.
Open entryvector-effect
vector-effect: none | non-scaling-stroke | non-scaling-size | non-rotation | fixed-positionThe CSS vector-effect property. Initial value: none. Not inherited.
Open entryx
x: <length> | <percentage>The CSS x property. Initial value: 0. Not inherited.
Open entryy
y: <length> | <percentage>The CSS y property. Initial value: 0. Not inherited.
Open entryProperties — Scroll-driven Animations
animation-range
animation-range: [ <'animation-range-start'> <'animation-range-end'>? ]#The CSS animation-range property. Initial value: animation-range-start,animation-range-end. Not inherited.
Open entryanimation-range-end
animation-range-end: [ normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#The CSS animation-range-end property. Initial value: normal. Not inherited.
Open entryanimation-range-start
animation-range-start: [ normal | <length-percentage> | <timeline-range-name> <length-percentage>? ]#The CSS animation-range-start property. Initial value: normal. Not inherited.
Open entryscroll-timeline
scroll-timeline: [ <'scroll-timeline-name'> <'scroll-timeline-axis'>? ]#The CSS scroll-timeline property. Initial value: scroll-timeline-name,scroll-timeline-axis. Not inherited.
Open entryscroll-timeline-axis
scroll-timeline-axis: [ block | inline | x | y ]#The CSS scroll-timeline-axis property. Initial value: block. Not inherited.
Open entryscroll-timeline-name
scroll-timeline-name: [ none | <dashed-ident> ]#The CSS scroll-timeline-name property. Initial value: none. Not inherited.
Open entrytimeline-scope
timeline-scope: none | <dashed-ident>#The CSS timeline-scope property. Initial value: none. Not inherited.
Open entryview-timeline
view-timeline: [ <'view-timeline-name'> [ <'view-timeline-axis'> || <'view-timeline-inset'> ]? ]#The CSS view-timeline property. Initial value: view-timeline-name,view-timeline-axis. Not inherited.
Open entryview-timeline-axis
view-timeline-axis: [ block | inline | x | y ]#The CSS view-timeline-axis property. Initial value: block. Not inherited.
Open entryview-timeline-inset
view-timeline-inset: [ [ auto | <length-percentage> ]{1,2} ]#The CSS view-timeline-inset property. Initial value: auto. Not inherited.
Open entryview-timeline-name
view-timeline-name: [ none | <dashed-ident> ]#The CSS view-timeline-name property. Initial value: none. Not inherited.
Open entrySelectors and cascade
::after
::afterInserts generated content after an element, often used for clearfixes or decoration.
Open entry::before
::beforeInserts generated content before an element. It is not in the DOM and not read reliably by screen readers.
Open entry::placeholder
::placeholderStyles placeholder text. Placeholders are hints, not labels; always keep a visible label.
Open entry::selection
::selectionStyles text the user has selected.
Open entry:active
:activeMatches while an element is being pressed.
Open entry:checked
:checkedMatches checked radio buttons and checkboxes, or selected options.
Open entry:disabled
:disabledMatches disabled form controls. It does not constrain normal elements; use :not([disabled]) for pointer rules.
Open entry:empty
:emptyMatches elements with no children, including whitespace-only text nodes.
Open entry:first-child
:first-childMatches an element that is the first child of its parent.
Open entry:focus
:focusStyles the element that currently has focus. Never remove the outline without a replacement.
Open entry:focus-visible
:focus-visibleMatches keyboard focus while avoiding a ring on mouse clicks. The modern accessible default.
Open entry:has()
form:has(input:invalid)Matches an element if it contains something that matches the inner selector.
Open entry:hover
:hoverStyles an element while the pointer is over it. Never put essential information behind hover only.
Open entry:invalid
:invalidMatches a control whose value does not satisfy its constraints.
Open entry:is()
:is(h1, h2, h3)Matches any selector in the list and adopts the highest specificity in it. Handy for grouping.
Open entry:last-child
:last-childMatches an element that is the last child of its parent.
Open entry:not()
:not(.quiet)Excludes elements that match the inner selector. Chain :not() for multiple exclusions.
Open entry:nth-child()
li:nth-child(2n)Matches elements by position among their siblings. Use odd, even or an+b patterns.
Open entry:nth-of-type()
p:nth-of-type(2)Matches by position among siblings of the same tag.
Open entry:where()
:where(h1, h2)Like :is() but with zero specificity, so later rules override it without a fight.
Open entry!important
color: red !important;Forces a declaration above normal cascade rules. Treat it as a warning sign, not a tool.
Open entry.class selector
.card { … }Targets every element with that class. Classes are reusable and belong in stylesheets.
Open entry#id selector
#hero { … }Targets the one element with that id. Prefer classes for styling; ids are for anchors and labels.
Open entryAdjacent sibling
h2 + p { … }Selects the element immediately after another with the same parent.
Open entryAttribute selector
a[target="_blank"] { … }Targets elements by attribute or attribute value. Operators include =, ^=, $=, *= and ~=.
Open entryChild combinator
nav > a { … }Selects only direct children. Safer than descendant when nesting can grow.
Open entryDescendant combinator
article p { … }Selects descendants at any depth, not just direct children.
Open entryGeneral sibling
h2 ~ p { … }Selects every matching sibling after the first element.
Open entryPseudo-class
:hover, :focus, :activeA keyword that selects an element in a particular state without changing the markup.
Open entryPseudo-element
::before, ::after, ::markerA keyword that selects a part of an element, such as the first line, first letter or a marker.
Open entrySpecificity
id > class > typeThe weight that decides which rule wins. Inline styles beat selectors; !important beats everything.
Open entryType selector
button { … }Targets every element of that tag name. Great for base styles.
Open entryUniversal selector
* { … }Targets every element. Use sparingly, usually for box-sizing or resets.
Open entryThe box model
aspect-ratio
aspect-ratio: 16 / 9Locks a box to a ratio so it reserves space before media loads.
Open entryborder
border: 1px solid #d8d0c6Sets width, style and colour of the border in one shorthand.
Open entryborder-radius
border-radius: 12pxRounds corners. Use 50% for a circle on a square box.
Open entrybox-shadow
box-shadow: 0 8px 24px rgb(0 0 0 / 0.12)Draws shadows outside or inside the box. Multiple shadows are comma-separated.
Open entrybox-sizing
box-sizing: border-boxMakes width include padding and border. Almost every project should set it globally.
Open entryheight
height: autoSets the content height. Prefer min-height over fixed heights so content can grow.
Open entrymargin
margin: 16px autoSpace outside the border. Auto horizontal margins centre a fixed-width block.
Open entrymargin-block / margin-inline
margin-block: 16pxLogical shorthand for vertical and horizontal margins that follows writing direction.
Open entrymin-width / max-width
max-width: 60chCaps or floors the size. max-width: 100% keeps images inside their container.
Open entryobject-fit
object-fit: coverHow replaced content such as images fills its box without distorting.
Open entryobject-position
object-position: centerChooses the focal point when object-fit crops the media.
Open entryoutline
outline: 2px solidA ring drawn outside the border that does not affect layout. Essential for focus styles.
Open entryoverflow
overflow: hiddenControls what happens when content is larger than the box: visible, hidden, scroll or auto.
Open entrypadding
padding: 12px 16pxSpace inside the border, between border and content.
Open entrywidth
width: 100%Sets the content width. With box-sizing: border-box it includes padding and border.
Open entryTypography
font-family
font-family: system-ui, sans-serifA fallback list of fonts. End with a generic family so text always renders.
Open entryfont-size
font-size: clamp(1rem, 2.5vw, 1.5rem)The text size. Prefer rem for accessibility, because it respects the user’s root size.
Open entryfont-style
font-style: italicNormal, italic or oblique text.
Open entryfont-variant-numeric
font-variant-numeric: tabular-numsChooses numeric glyph styles. Tabular numerals keep columns aligned in tables.
Open entryfont-weight
font-weight: 600Thickness of the type: 100–900 or normal/bold. Only use weights the font actually includes.
Open entryletter-spacing
letter-spacing: 0.02emSpace between characters. Small positive values can improve uppercase labels.
Open entryline-height
line-height: 1.6Vertical distance between lines. Unitless values scale with font size and are usually safest.
Open entrylist-style
list-style: disc insideSets marker type and position for list items.
Open entryoverflow-wrap
overflow-wrap: anywhereBreaks long words that would otherwise overflow their container.
Open entrytext-align
text-align: centerAligns inline content: left, right, center, justify or start/end for logical direction.
Open entrytext-decoration
text-decoration: underline wavyDecorations such as underline, overline and line-through with style and colour.
Open entrytext-indent
text-indent: 2emIndents the first line of a block of text.
Open entrytext-overflow
text-overflow: ellipsisShows an ellipsis when text overflows. Requires overflow:hidden and white-space:nowrap.
Open entrytext-shadow
text-shadow: 0 1px 2px rgb(0 0 0 / 0.3)Adds a shadow to the glyphs. Keep it subtle for readability.
Open entrytext-transform
text-transform: uppercaseChanges letter case visually without changing the underlying text.
Open entryuser-select
user-select: noneControls whether text can be selected. Do not block selection on content people may want to copy.
Open entrywhite-space
white-space: nowrapControls wrapping and whitespace collapsing.
Open entryword-spacing
word-spacing: 0.1emExtra space between words.
Open entryUnits
% (percentage)
50%Relative to the containing block or another property’s value, depending on the property.
Open entrycap
1capThe cap height of the current font.
Open entrych
60chThe width of the 0 glyph in the current font. Excellent for readable line lengths.
Open entrycm / mm / in
2.54cmPhysical units for print styles. One inch equals 2.54cm.
Open entrycqmin / cqmax
10cqminOne percent of the smaller or larger container dimension.
Open entrycqw / cqh
50cqwOne percent of a container query container’s width or height.
Open entrydeg
45degDegrees, used by gradients, rotation and hue.
Open entrydpi / dppx
96dpiResolution units for media queries and image sets.
Open entrydvh / svh / lvh
100dvhDynamic, small and large viewport heights that account for mobile browser chrome.
Open entryem
1.5emRelative to the element’s own font size. Compounds when nested.
Open entryex
1exThe x-height of the current font, a measure of lowercase height.
Open entryfr
1frA fraction of the free space in a grid track.
Open entrygrad
50gradGradians. A full turn is 400grad.
Open entrylh
1.5lhThe line height of the element. Useful for vertical rhythm that follows type.
Open entrypt / pc
12ptPrint-oriented points and picas. Prefer rem for screen typography.
Open entrypx
10pxA CSS pixel. The reference unit for borders, shadows and small spacing.
Open entryrad
0.5radRadians for angles.
Open entryrem
1.5remRelative to the root font size. Predictable for spacing and type scales.
Open entrys / ms
200msSeconds and milliseconds for durations.
Open entryturn
0.25turnTurns. A full turn is 1turn, which is easier to read than 360deg.
Open entryvh
50vhOne percent of the viewport height. On mobile, use dvh to avoid browser chrome jumps.
Open entryvmin / vmax
10vminOne percent of the smaller or larger viewport dimension.
Open entryvw
50vwOne percent of the viewport width. Ignores scrollbars in some browsers; prefer dvw for full layouts.
Open entryTurn the reference into recall.
Read the full lesson, then solve the challenge without looking. That is where the knowledge sticks.