CSS Reference

    Here is the detail of major CSS 2.1 properties. Click link below for shortcut to where you want to see.

Background | Border | Margin | Padding | Dimension | Positions | Text | Font | Lists and Markers | Classification | Table | Outline | Pseudo Classes | Pseudo Element

Comment

If you looking to put comment in your CSS file, write as this: /* comment */

For multi line: /* comment line 1
comment line 2
comment line 3 */

Background

PropertyDescriptionValue
backgroundA shorthand property for settings all background property in one declaration.background-color
background-images
background-position
background-attachment
background-repeat
background-colorDefine background colorcolor-rgb
color-hex
color name
background-imagesSet an image for the background.url
none
background-positionSet where the background image should position in.x-postion y-position
x-% y-%
For x - Left Center Right
For y - Top Center Bottom
background-attachmentSet whether the background image static or scroll with page.scroll
fixed
background-repeatSet whether the image is repeat or not.repeat
repeat-x
repeat-y
norepeat

Border

PropertyDescriptionValue
borderShorthand for settings all of the border properties of all four side with one declaration.border-width
border-style
border-color
border-widthShorthand for settings border width of all four borders.thin
medium
thick
pixels
border-styleShorthand for settings border style for all four borders.none
hidden
dotted
dashed
solid
double
groove
ridge
inset
outset
border-colorShorthand for settings border color of all four borders.color-rgb
color-hex
color name
border-topShorthand for settings all properties for top border.border-width
border-style
border-color
border-rightShorthand for settings all properties for right border.border-width
border-style
border-color
border-bottomShorthand for settings all properties for bottom border.border-width
border-style
border-color
border-leftShorthand for settings all properties for left border.border-width
border-style
border-color