CSS Values

accent-color

  • auto
  • currentColor
  • transparent
  • <color>

Only applies to certain form and/or UI elements.

Load Browser Support ▼

permalink MDN info W3C info

css3

align-content

For flexbox:

  • stretch
  • flex-start
  • flex-end
  • center
  • space-between
  • space-around

For grid layout:

  • normal
  • baseline
  • first baseline
  • last baseline
  • space-between
  • space-around
  • space-evenly
  • stretch
  • center
  • start
  • end
  • center safe
  • center unsafe

The safe and unsafe keywords are optional and can be used alongside any alignment keyword.

Load Browser Support ▼

permalink MDN info W3C info

css3 flexbox grid

align-items

  • normal
  • center
  • flex-start
  • flex-end
  • start
  • end
  • self-start
  • self-end
  • baseline
  • first baseline
  • last baseline
  • stretch
  • safe
  • unsafe

Load Browser Support ▼

permalink MDN info W3C info

css3 flexbox grid

align-self

  • auto
  • normal
  • self-start
  • self-end
  • flex-start
  • flex-end
  • center
  • baseline
  • first baseline
  • last baseline
  • stretch
  • safe
  • unsafe

Load Browser Support ▼

permalink MDN info W3C info

css3 grids flexbox

all

This is a shorthand property that resets all CSS properties. Value can be one of the following:

  • initial
  • inherit
  • unset
  • revert

This property affects all properties and so does not have an initial value.

Load Browser Support ▼

permalink MDN info W3C info

css3

animation

This is a shorthand property. Values represent:

  • [animation‑name] [animation‑duration] [animation‑timing‑function] [animation‑delay] [animation‑iteration‑count] [animation‑direction] [animation‑fill‑mode] [animation‑play‑state]

The first value parsed as a valid time value is used as "duration", so if you want to include a time value for "delay", you must first declare a duration. Multiple animations are declared using comma-separated value sets.

Load Browser Support ▼

permalink MDN info W3C info

css3 keyframes

animation-delay

Accepts a comma-separated list of delay values to correspond to the animations identified in animation-name and the matching @keyframes at-rules.

Load Browser Support ▼

permalink MDN info W3C info

css3 keyframes

animation-direction

  • normal
  • reverse
  • alternate-reverse
  • alternate

Accepts a comma-separated list of direction values to correspond to the animations identified in animation-name and the matching @keyframes at-rules.

Load Browser Support ▼

permalink MDN info W3C info

css3 keyframes

animation-duration

Accepts a comma-separated list of time values to correspond to the animations identified in animation-name and the matching @keyframes at-rules.

Load Browser Support ▼

permalink MDN info W3C info

css3 keyframes

animation-fill-mode

  • none
  • forwards
  • both
  • backwards

Accepts a comma-separated list of fill mode values to correspond to the animations identified in animation-name and the matching <@keyframes> at-rules.

Load Browser Support ▼

permalink MDN info W3C info

css3 keyframes

animation-iteration-count

Accepts a comma-separated list of iteration counts to correspond to the animations identified in animation-name and the matching @keyframes at-rules.

Load Browser Support ▼

permalink MDN info W3C info

css3 keyframes

animation-name

Accepts a comma-separated list of animations and must correspond to a name given in any @keyframes at-rule. The "custom identifier" is chosen similar to how variable or function names are defined in JavaScript. This custom identifier must match an identifier used in an @keyframes at-rule.

Load Browser Support ▼

permalink MDN info W3C info

css3 keyframes

animation-play-state

  • running
  • paused

Accepts a comma-separated list of play state values to correspond to the animations identified in animation-name and the matching @keyframes at-rules.

Load Browser Support ▼

permalink MDN info W3C info

css3 keyframes

animation-timing-function

Accepts a comma-separated list of timing functions to correspond to the animations identified in animation-name and the matching @keyframes at-rules. First and third values in the cubic-bezier() function must be a number between 0 and 1.

Load Browser Support ▼

permalink MDN info W3C info

css3 keyframes

appearance

  • none
  • auto
  • textfield
  • menulist-button
  • searchfield
  • textarea
  • push-button
  • slider-horizontal
  • checkbox
  • radio
  • square-button
  • menulist
  • listbox
  • meter
  • progress-bar
  • button

This is normally defined using the vendor-specific -webkit-appearance. All values starting with searchfield exist for compatibility of content developed for earlier non-standard versions of this property.

Load Browser Support ▼

permalink MDN info W3C info

css3 -webkit-appearance webkit-appearance

aspect-ratio

Load Browser Support ▼

permalink MDN info W3C info

css3

backface-visibility

  • visible
  • hidden

Load Browser Support ▼

permalink MDN info W3C info

css3 3d

background

This is a shorthand property. Values represent:

  • [background‑color] [background‑image] [background‑repeat] [background‑attachment] [background‑position] / [ background‑size] [background‑origin] [background‑clip]

Multiple backgrounds are defined using comma-separated value sets. If a background color is included in the shorthand with multiple backgrounds, it must be declared last after a comma. If background-size is included, it's paired with background-position after a forward slash. If setting both background-origin and background-clip, the first value is background-origin. If one is omitted, both background-origin and background-clip are set to the same value.

Load Browser Support ▼

permalink MDN info W3C info

css2 multiple multiple-bg

background-attachment

  • scroll
  • fixed
  • local

If multiple background images are defined, multiple background-attachment values are declared by comma-separating the values.

Load Browser Support ▼

permalink MDN info W3C info

css2

background-blend-mode

  • normal
  • multiply
  • screen
  • overlay
  • darken
  • lighten
  • color-dodge
  • color-burn
  • hard-light
  • soft-light
  • difference
  • exclusion
  • hue
  • saturation
  • color
  • luminosity

Load Browser Support ▼

permalink MDN info W3C info

css3 compositing

background-clip

  • border-box
  • padding-box
  • content-box
  • text

If multiple background images are defined, multiple background-clip values are declared by comma-separating the values.

Load Browser Support ▼

permalink MDN info W3C info

css3

background-color

Load Browser Support ▼

permalink MDN info W3C info

css2

background-image

Multiple background images are defined using comma-separated values. URLs can be defined without quotes or with single quotes.

Load Browser Support ▼

permalink MDN info W3C info

css2 linear-gradient radial-gradient conic-gradient repeating-gradient multiple-bg

background-origin

  • padding-box
  • border-box
  • content-box

This property has no effect on background images that have their background-attachment property set to "fixed".

Load Browser Support ▼

permalink MDN info W3C info

css3

background-position

If multiple background images are defined, multiple background-position values are defined using comma-separated value pairs. Keywords represent horizontal offsets (left, center, right) and vertical offsets (top, center, bottom), and can be mixed and matched.

Load Browser Support ▼

permalink MDN info W3C info

css2

background-repeat

  • repeat
  • no-repeat
  • space
  • round
  • repeat-y
  • repeat-x
  • repeat no-repeat
  • round round
  • space space

Can be any two space-separated values, representing horizontal repeat and vertical repeat. If multiple background images are defined, multiple background-repeat values are defined using comma-separated value sets.

Load Browser Support ▼

permalink MDN info W3C info

css2

background-size

If two values are included, the first value is the width and the second is the height. If multiple background images are defined, multiple background-size values are defined using comma-separated value sets.

Load Browser Support ▼

permalink MDN info W3C info

css3

block-size

Load Browser Support ▼

permalink MDN info W3C info

css3 logical

border

This is a shorthand property. Values represent:

  • [border‑width] [border‑style] [border‑color]

This shorthand property will reset border-image values to their initial values.

Load Browser Support ▼

permalink MDN info W3C info

css2

border-block

This is a shorthand property that accepts one to three space-separated values.

  • [border‑block‑width] [border‑block‑style] [border‑block‑color]

Load Browser Support ▼

permalink MDN info W3C info

css3 logical

border-block-color

This is a shorthand that accepts one or two space-separated values representing:

  • <border-block-start-color> <border-block-end-color>

This property depends on writing mode, direction, and text-orientation.

Load Browser Support ▼

permalink MDN info W3C info

css3 logical

border-block-end

This is a shorthand property that accepts one to three space-separated values.

  • [border‑block‑end‑width] [border‑block‑end‑style] [border‑block‑end‑color]

This property depends on writing mode, direction, and text-orientation.

Load Browser Support ▼

permalink MDN info W3C info

css3 logical

border-block-end-color

This property depends on writing mode, direction, and text-orientation.

Load Browser Support ▼

permalink MDN info W3C info

css3 logical

border-block-end-style

  • none
  • hidden
  • dotted
  • dashed
  • solid
  • double
  • groove
  • ridge
  • inset
  • outset

This property depends on writing mode, direction, and text-orientation.

Load Browser Support ▼

permalink MDN info W3C info

css3 logical

border-block-end-width

This property depends on writing mode, direction, and text-orientation.

Load Browser Support ▼

permalink MDN info W3C info

css3 logical

border-block-start

This is a shorthand property that accepts one to three space-separated values.

  • [border‑block‑end‑width] [border‑block‑end‑style] [border‑block‑end‑color]

This property depends on writing mode, direction, and text-orientation.

Load Browser Support ▼

permalink MDN info W3C info

css3 logical

border-block-start-color

This property depends on writing mode, direction, and text-orientation.

Load Browser Support ▼

permalink MDN info W3C info

css3 logical

border-block-start-style

  • none
  • hidden
  • dotted
  • dashed
  • solid
  • double
  • groove
  • ridge
  • inset
  • outset

This property depends on writing mode, direction, and text-orientation.

Load Browser Support ▼

permalink MDN info W3C info

css3 logical

border-block-start-width

This property depends on writing mode, direction, and text-orientation.

Load Browser Support ▼

permalink MDN info W3C info

css3 logical

border-block-style

This is a shorthand that accepts one or two space-separated values representing one of the following two value sets:

  • [border‑top‑style] [border‑bottom‑style]
  • [border‑left‑style] [border‑right‑style]

This property depends on writing mode, direction, and text-orientation.

Load Browser Support ▼

permalink MDN info W3C info

css3 logical

border-block-width

This is a shorthand that accepts one or two space-separated values representing one of the following two value sets:

  • [border‑top‑width] [border‑bottom‑width]
  • [border‑left‑width] [border‑right‑width]

Load Browser Support ▼

permalink MDN info W3C info

css3 logical

border-bottom

This is a shorthand property. Values represent:

  • [border‑bottom‑width] [border‑bottom‑style] [border‑bottom‑color]

Load Browser Support ▼

permalink MDN info W3C info

css2

border-bottom-color

Load Browser Support ▼

permalink MDN info W3C info

css2

border-bottom-left-radius

Load Browser Support ▼

permalink MDN info W3C info

css3

border-bottom-right-radius

Load Browser Support ▼

permalink MDN info W3C info

css3

border-bottom-style

  • none
  • solid
  • ridge
  • outset
  • inset
  • hidden
  • groove
  • double
  • dotted
  • dashed

Load Browser Support ▼

permalink MDN info W3C info

css2

border-bottom-width

Load Browser Support ▼

permalink MDN info W3C info

css2

border-collapse

  • separate
  • collapse

Load Browser Support ▼

permalink MDN info W3C info

css2 tables

border-color

This is a shorthand property that accepts one to four space-separated values.

  • [border‑top‑color] [border‑right‑color] [border‑bottom‑color] [border‑left‑color]

When one or more values are omitted, the existing values are applied to the missing ones. In other words, missing value #3 matches existing value #1 and missing value #4 matches existing value #2.

Load Browser Support ▼

permalink MDN info W3C info

css2

border-end-end-radius

This property accepts one or two space-separated values and depends on writing mode, direction, and text-orientation.

Value types can be mixed and matched.

Load Browser Support ▼

permalink MDN info W3C info

css3 logical

border-end-start-radius

This property accepts one or two space-separated values and depends on writing mode, direction, and text-orientation.

Value types can be mixed and matched.

Load Browser Support ▼

permalink MDN info W3C info

css3 logical

border-image

This is a shorthand property. Values represent:

  • [border‑image‑source] [border‑image‑slice] / [border‑image‑width] / [border‑image‑outset] [border‑image‑repeat]

Load Browser Support ▼

permalink MDN info W3C info

css3

border-image-outset

This property accepts one to four space-separated values.

Load Browser Support ▼

permalink MDN info W3C info

css3

border-image-repeat

Accepts one or two space-separated values.

  • stretch
  • space
  • round
  • repeat
  • space round
  • stretch repeat

Two values represent horizontal and vertical repeat. Values can be mixed and matched.

Load Browser Support ▼

permalink MDN info W3C info

css3

border-image-slice

Accepts one to four space-separated values.

The fill keyword cannot be used on its own, it must precede or follow a length or percentage value.

Load Browser Support ▼

permalink MDN info W3C info

css3

border-image-source

URLs can be defined without quotes or with single quotes.

Load Browser Support ▼

permalink MDN info W3C info

css3

border-image-width

Accepts one to four space-separated values.

Value types can be mixed and matched.

Load Browser Support ▼

permalink MDN info W3C info

css3

border-inline

This is a shorthand property that accepts one to three space-separated values.

  • [border‑inline‑width] [border‑inline‑style] [border‑inline‑color]

Load Browser Support ▼

permalink MDN info W3C info

css3 logical

border-inline-color

This is a shorthand that accepts one or two space-separated values representing:

  • [border‑inline‑start‑color] [border‑inline‑end‑color]

Load Browser Support ▼

permalink MDN info W3C info

css3 logical

border-inline-end

This is a shorthand property that accepts one to three space-separated values.

  • [border‑inline‑end‑width] [border‑inline‑end‑style] [border‑inline‑end‑color]

Load Browser Support ▼

permalink MDN info W3C info

css3 logical

border-inline-end-color

Load Browser Support ▼

permalink MDN info W3C info

css3 logical

border-inline-end-style

  • none
  • hidden
  • dotted
  • dashed
  • solid
  • double
  • groove
  • ridge
  • inset
  • outset

Load Browser Support ▼

permalink MDN info W3C info

css3 logical

border-inline-end-width

Load Browser Support ▼

permalink