CSS Reference Guide

Property Description
Background
background A shorthand property for setting all background properties in one declaration
background-attachment Sets whether a background image is fixed or scrolls with the rest of the page
background-color Sets the background color of an element
background-image Sets an image as the background
background-position Sets the starting position of a background image
background-repeat Sets if/how a background image will be repeated
Border
border A shorthand property for setting all of the properties for the four borders in one declaration
border-bottom A shorthand property for setting all of the properties for the bottom border in one declaration
border-bottom-color Sets the color of the bottom border
border-bottom-style Sets the style of the bottom border
border-bottom-width Sets the width of the bottom border
border-left A shorthand property for setting all of the properties for the left border in one declaration
border-left-color Sets the color of the left border
border-left-style Sets the style of the left border
border-left-width Sets the width of the left border
border-right A shorthand property for setting all of the properties for the right border in one declaration
border-right-color Sets the color of the right border
border-right-style Sets the style of the right border
border-right-width Sets the width of the right border
border-top A shorthand property for setting all of the properties for the top border in one declaration
border-top-color Sets the color of the top border
border-top-style Sets the style of the top border
border-top-width Sets the width of the top border
border-color Sets the color of the four borders, can have from one to four colors
border-style Sets the style of the four borders, can have from one to four styles
border-width A shorthand property for setting the width of the four borders in one declaration, can have from one to four values
Classification
clear Sets the sides of an element where other floating elements are not allowed
cursor Specifies the type of cursor to be displayed
display Sets how/if an element is displayed
float Sets where an image or a text will appear in another element
position Places an element in a static, relative, absolute or fixed position
visibility Sets if an element should be visible or invisible
Dimension
height Sets the height of an element
line-height Sets the distance between lines
max-height Sets the maximum height of an element
max-width Sets the maximum width of an element
min-height Sets the minimum height of an element
min-width Sets the minimum width of an element
width Sets the width of an element
Font
font A shorthand property for setting all of the properties for a font in one declaration
font-family A prioritized list of font family names and/or generic family names for an element
font-size Sets the size of a font
font-size-adjust Specifies an aspect value for an element that will preserve the x-height of the first-choice font
font-stretch Condenses or expands the current font-family
font-style Sets the style of the font
font-variant Displays text in a small-caps font or a normal font
font-weight Sets the weight of a font
Generated Content
content Generates content in a document. Used with the :before and :after pseudo-elements
counter-increment Sets how much the counter increments on each occurrence of a selector
counter-reset Sets the value the counter is set to on each occurrence of a selector
quotes Sets the type of quotation marks
List and Marker
list-style A shorthand property for setting all of the properties for a list in one declaration
list-style-image Sets an image as the list-item marker
list-style-position Sets where the list-item marker is placed in the list
list-style-type Sets the type of the list-item marker
Margin
margin A shorthand property for setting the margin properties in one declaration
margin-bottom Sets the bottom margin of an element
margin-left Sets the left margin of an element
margin-right Sets the right margin of an element
margin-top Sets the top margin of an element
Outlines
outline A shorthand property for setting all the outline properties in one declaration
outline-color Sets the color of the outline around an element
outline-style Sets the style of the outline around an element
outline-style Sets the style of the outline around an element
outline-width Sets the width of the outline around an element
Padding
padding A shorthand property for setting all of the padding properties in one declaration
padding-bottom Sets the bottom padding of an element
padding-left Sets the left padding of an element
padding-right Sets the right padding of an element
padding-top Sets the top padding of an element
Positioning
bottom Sets how far the bottom edge of an element is above/below the bottom edge of the parent element
clip Sets the shape of an element. The element is clipped into this shape, and displayed
left Sets how far the left edge of an element is to the right/left of the left edge of the parent element
overflow Sets what happens if the content of an element overflow its area
position Places an element in a static, relative, absolute or fixed position
right Sets how far the right edge of an element is to the left/right of the right edge of the parent element
top Sets how far the top edge of an element is above/below the top edge of the parent element
vertical-align Sets the vertical alignment of an element
z-index Sets the stack order of an element
Table
border-collapse Sets the border model of a table
border-spacing Sets the distance between the borders of adjacent cells (only for the 'separated borders' model)
caption-side Sets the position of the caption according to the table
empty-cells Sets whether cells with no visible content should have borders or not (only for the 'separated borders' model)
table-layout Sets the algorithm used to lay out the table
Text
color Sets the color of a text
direction Sets the text direction
letter-spacing Increase or decrease the space between characters
text-align Aligns the text in an element
text-decoration Adds decoration to text
text-indent Indents the first line of text in an element
text-transform Controls the letters in an element
white-space Sets how white space inside an element is handled
word-spacing Increase or decrease the space between words
Pseudo-classes
:active Adds special style to an activated element
:focus Adds special style to an element while the element has focus
:hover Adds special style to an element when you mouse over it
:link Adds special style to an unvisited link
:visited Adds special style to a visited link
:first-child Adds special style to an element that is the first child of some other element
:lang Allows the author to specify a language to use in a specified element
Pseudo-elements
:first-letter Adds special style to the first letter of a text
:first-line Adds special style to the first line of a text
:before Inserts some content before an element
:after Inserts some content after an element