Table of contents
- 1. Properties
- 2. Values and types
- 3. Selectors
- 3.1. Basic Selectors
- 3.2. Combinators
- 3.3. Pseudo-elements
- 3.4. Pseudo-classes
- 4. @-rules
- 5. Miscellaneous
- 6. Concepts
This CSS Reference lists all standard CSS properties, pseudo-classes and elements, @-rules, and selectors in the alphabetic order. It allows you to quickly access to detailed information for each of them.
See also Mozilla CSS Extensions for Gecko-specific properties prefixed with -moz-. See Vendor-prefixed CSS Property Overview by Peter Beverloo for all prefixed properties.
Properties
A
G H I J K L M N
animationanimation-delayanimation-directionanimation-durationanimation-fill-modeanimation-iteration-countanimation-nameanimation-play-stateanimation-timing-function
backface-visibilitybackgroundbackground-attachmentbackground-clipbackground-colorbackground-imagebackground-originbackground-positionbackground-repeatbackground-sizeborderborder-bottomborder-bottom-colorborder-bottom-right-radiusborder-bottom-left-radiusborder-bottom-styleborder-bottom-widthborder-collapseborder-colorborder-imageborder-image-outsetborder-image-repeatborder-image-sliceborder-image-sourceborder-image-widthborder-leftborder-left-colorborder-left-styleborder-left-widthborder-radiusborder-rightborder-right-colorborder-right-styleborder-right-widthborder-spacingborder-styleborder-topborder-top-colorborder-top-left-radiusborder-top-right-radiusborder-top-styleborder-top-widthborder-widthbottombox-shadowbox-sizingbreak-afterbreak-beforebreak-inside
caption-sideclearclipclip-pathcolorcolumnscolumn-countcolumn-fillcolumn-gapcolumn-rulecolumn-rule-colorcolumn-rule-stylecolumn-rule-widthcolumn-spancolumn-widthcontentcounter-incrementcounter-resetcursor
G H I J K L M N
marginmargin-bottommargin-leftmargin-rightmargin-topmarker-offsetmarksmaskmax-heightmax-widthmin-heightmin-width
opacityorphansoutlineoutline-coloroutline-offsetoutline-styleoutline-widthoverflowoverflow-xoverflow-y
paddingpadding-bottompadding-leftpadding-rightpadding-toppage-break-afterpage-break-beforepage-break-insideperspectiveperspective-originpointer-eventsposition
table-layouttab-sizetext-aligntext-decorationtext-decoration-colortext-decoration-linetext-decoration-styletext-indenttext-overflowtext-renderingtext-shadowtext-transformtoptransformtransform-origintransform-styletransitiontransition-delaytransition-durationtransition-propertytransition-timing-function
Values and types
Selectors
Basic Selectors
- Type selectors
elementname - Class selectors
.classname - ID selectors
#idname - Universal selectors
* ns|* *|* - Attribute selectors
[attribute][attribute="value"][attribute~="value"][attribute|="value"][attribute^="value"][attribute$="value"][attribute*="value"][ns|attribute]
Combinators
- Adjacent sibling selectors
A + B - General sibling selectors
A ~ B - Child selectors
A > B - Descendant selectors
A B
Pseudo-classes
The CSS pseudo-classes are classified in different type according to the way they modify the selector they are bound to:


Mozilla Developer Network