CSS3 References ordered alphabetically

Comprehensive reference to CSS3, with full descriptions of all elements, attributes and live examples.

TagDescriptionCSS3 examplesStatus
::selectionThe ::selection CSS pseudo-element applies rules to the portion of a document that has been highlighted (e.
:checkedThe :checked pseudo-class selector represents any radio (<input type="radio">), checkbox (<input type="checkbox">) or option (<option> in a <select> ) element that is checked or toggled to an on state.
:disabledThe :disabled pseudo-class represents any disabled element.
:emptyThe :empty pseudo-class represents any element that has no children at all.
:enabledThe :enabled pseudo-class represents any enabled element.
:first-of-typeThe :first-of-type pseudo-class represents the first sibling of the given type in the list of children of its parent element. -prefix
:indeterminateThe :indeterminate CSS pseudo-class represents any <input type="checkbox"> element whose indeterminate DOM property is set to true by JavaScript.
:invalidThe :invalid pseudo-class represents any <input>  element whose content fails to validate according to the input's type setting.
:last-childThe :last-child pseudo-class represents any element that is the last child element of its parent.
:last-of-typeThe :last-of-type CSS pseudo-class represents the last sibling of the given type in the list of children of its parent element. -prefix
:not()The negation pseudo-class, :not(X), is a functional notation taking a simple selector X as an argument.
:nth-childThe :nth-child pseudo-class matches an element that has an+b-1 siblings before it in the document tree, for a given positive or zero value for n, and has a parent element.

css :nth-child

:nth-last-childThe :nth-last-child pseudo-class matches an element that has an+b-1 siblings after it in the document tree, for a given positive or zero value for n, and has a parent element.
:nth-last-of-typeThe :nth-last-of-type pseudo-class matches an element that has an+b-1 siblings with the same element name after it in the document tree, for a given positive or zero value for n, and has a parent element. -prefix
:nth-of-typeThe :nth-of-type pseudo-class matches an element that has an+b-1 siblings with the same element name before it in the document tree, for a given positive or zero value for n, and has a parent element. -prefix
:only-childThe :only-child pseudo-class represents any element which is the only child of its parent.
:only-of-typeThe :only-of-type pseudo-class represents any element that has no siblings of the given type. -prefix
:optionalThe :optional CSS pseudo-class represents any <input>  element that does not have the required attribute set on it.
:requiredThe :required CSS pseudo-class represents any <input>  element that has the required attribute set on it.
:rightThe :right page pseudo-class matches any right page when printing a page.
:rootThe :root pseudo-class matches the root element of a tree representing the document.
:validThe :valid CSS pseudo-class represents any <input>  element whose content validates correctly according to the input's type setting.
@keyframes@keyframes lets authors control the intermediate steps in a CSS animation sequence by establishing keyframes (or waypoints) along the animation sequence that must be reached by certain points during the animation.
acceleratorSpecifies whether or not the element has an accelerator key, which is a shortcut for selecting the element.
angleThe <angle> CSS data type represents angle values. -prefix
animationThe animation CSS property is a shorthand property for animation-name , animation-duration , animation-timing-function , animation-delay , animation-iteration-count and animation-direction . -prefix

css animation

animation-delayThe animation-delay CSS property specifies when the animation should start. -prefix
animation-directionThe animation-direction CSS property indicates whether the animation should play in reverse on alternate cycles. -prefix
animation-durationThe animation-duration CSS property specifies the length of time that an animation should take to complete one cycle. -prefix
animation-fill-modeThe animation-fill-mode CSS property specifies how a CSS animation should apply styles to its target before and after it is executing. -prefix
animation-iteration-countThe animation-iteration-count CSS property defines the number of times an animation cycle should be played before stopping. -prefix
animation-nameThe animation-name CSS property specifies a list of animations that should be applied to the selected element. -prefix
animation-play-stateThe animation-play-state CSS property determines whether an animation is running or paused. -prefix
animation-timing-functionThe animation-timing-function CSS property specifies how a CSS animation should progress over the duration of each cycle. -prefix
backface-visibilityThe backface-visibility CSS property determines whether or not the back face of the element is visible when facing the user. -prefix
background-clipThe background-clip CSS property specifies whether an element's background, either the color or image, extends underneath its border. -prefix
background-originThe background-origin CSS property determines the background positioning area, that is the position of the origin of an image specified using the background-image CSS property. -prefix
background-position-xSpecifies the x-position of a background image for an element.
background-position-ySpecifies the y-position of a background image for an element.
border-bottom-left-radiusThe border-bottom-left-radius CSS property sets the rounding of the bottom-left corner of the element.

css border-bottom-left-radius

border-bottom-right-radiusThe border-bottom-right-radius CSS property sets the rounding of the bottom-right corner of the element.

css border-bottom-right-radius

border-imageThe border-image CSS property allows drawing an image on the borders of elements. -prefix
border-image-repeatThe border-image-repeat CSS property defines how the middle part of a border image is handled to match the size of the border. -prefix
border-image-sourceThe border-image-source CSS property defines the <image> to use instead of the style of the border. -prefix
border-image-widthThe border-image-width CSS property defines the offset to use for dividing the border image in nine parts. -prefix
border-radiusThe border-radius CSS property allows Web authors to define how rounded border corners are.

css border-radius

border-top-left-radiusThe border-top-left-radius CSS property sets the rounding of the top-left corner of the element.

css border-top-left-radius

border-top-right-radiusThe border-top-right-radius CSS property sets the rounding of the top-right corner of the element.

css border-top-right-radius

box-shadowThe box-shadow CSS property accepts one or more shadow effects as a comma-separated list.

css box-shadow

box-sizingThe box-sizing CSS property is used to alter the default CSS box model used to calculate widths and heights of elements. -prefix
column-countThe column-count CSS property describes the number of columns of the element. -prefix

css column-count

column-fillThe column-fill CSS property controls how contents are partitioned into columns. -prefix

css column-fill

column-gapThe column-gap CSS property sets the size of the gap between columns for elements which are specified to display as a multi-column element. -prefix

css column-gap

column-ruleIn multi-column layouts, the column-rule CSS property specifies a straight line, or "rule", to be drawn between each column. -prefix

css column-rule

column-rule-colorThe column-rule-color CSS property lets you set the color of the rule drawn between columns in multi-column layouts. -prefix
column-rule-styleThe column-rule-style CSS property lets you set the style of the rule drawn between columns in multi-column layouts. -prefix
column-rule-widthThe column-rule-width CSS property lets you set the width of the rule drawn between columns in multi-column layouts. -prefix
columnsThe columns CSS property is a shorthand property allowing to set both the column-width and the column-count properties at the same time. -prefix
column-widthThe column-width CSS property suggests an optimal column width. -prefix

css column-width

cueDefines the properties for an aural cue before or after an element.
cue-afterDefines the properties for an aural cue after an element.
cue-beforeDefines the properties for an aural cue before an element.
elevationSpecifies the elevation of the element. You can either one of the relative elevations or specify an angle in degrees.
gradientThe <gradient> CSS data type denotes a CSS <image> made of a progressive transition between two or more colors. -prefix
hyphensThe hyphens CSS property tells the browser how to go about splitting words to improve the layout of text when line-wrapping.
image-renderingThe image-rendering CSS property provides a hint to the user agent about how to handle its image rendering. -prefix
layout-flowSpecifies the flow direction for the content of the element.
layout-gridDefines the set of layout-grid properties for an element.
layout-grid-charSpecifies the size of a character grid for the content of an element.
layout-grid-lineSpecifies the grid line value for the text content of an element.
layout-grid-modeSpecifies if the element text layout grid uses the line and/or char mode.
layout-grid-typeSpecifies the type of layout grid for the content of an element.
line-breakSpecifies line-breaking rules for Japanese text.
opacitySpecifies the transparency of an element. Specify a value between 0.0-1.0.

css opacity

outline-offsetThe outline-offset CSS property is used to set space between an outline and the edge or border of an element. -prefix
overflow-xSpecifies how to handle content overflow of an element if the content is too wide for the element.
overflow-ySpecifies how to handle content overflow of an element if the content is too tall for the element.
perspectiveThe perspective CSS property determines the distance between the z=0 plane and the user in order to give to the 3D-positioned element some perspective. -prefix
perspective-originThe perspective-origin CSS property determines the position the viewer is looking at. -prefix
resizeThe resize CSS property lets you control the resizability of an element.
ruby-alignSpecifies the alignment for ruby text.
ruby-overhangSpecifies the overhang of ruby text.
ruby-positionSpecifies the position of ruby text.
text-align-lastSpecifies the alignment for the last or only line of text for the element.
text-decoration-colorThe text-decoration-color CSS property sets the color used when drawing underlines, overlines, or strike-throughs specified by text-decoration-line .
text-decoration-lineThe text-decoration-line CSS property sets what kind of line decorations are added to an element.
text-decoration-styleThe text-decoration-style CSS property defines the style of the lines specified by text-decoration-line .
text-justifySpecifies the alignment to use to justify the text for the element.
text-overflowSpecifies whether to use ellipses (...) to indicate text overflow. -prefix
text-shadowDefines the horizontal depth, vertical depth, blur, and color for a drop-shadow for text content in the element.

css text-shadow

text-underline-positionSpecifies the position of the underline text-decoration.
transformThe transform CSS property lets you modify the coordinate space of the CSS visual formatting model. -prefix

css transform

transform-originThe transform-origin CSS property lets you modify the origin for transformations of an element. -prefix
transform-styleThe transform-style CSS property determines if the children of the element are positioned in the 3D-space or are flattened in the plane of the element. -prefix
transitionThe transition CSS property is a shorthand property for transition-property , transition-duration , transition-timing-function , and transition-delay . -prefix

css transition

transition-delayThe transition-delay CSS property specifies the amount of time to wait between a change being requested to a property that is to be transitioned and the start of the transition effect. -prefix
transition-durationThe transition-duration CSS property specifies the number of seconds or milliseconds a transition animation should take to complete. -prefix
transition-propertyThe transition-property CSS property is used to specify the names of CSS properties to which a transition effect should be applied. -prefix

css transition-property

transition-timing-functionThe transition-timing-function CSS property is used to describe how the intermediate values of the CSS properties being affected by a transition effect are calculated. -prefix
word-breakSpecifies line-breaking behavior between words in the content of the element.
word-wrapSpecifies line-breaking behavior for words that are longer than their container boundaries.
writing-modeSpecifies the direction and flow of content in the element.