Cascading Style Sheets Reference

index

Properties Pseudoclasses Values

Properties

background
background-attachment scroll | fixed
background-color color
background-image
background-position
background-repeat repeat | repeat-x | repeat-y | no-repeat
border
border-collapse collapse | separate
border-color color
border-style dashed | dotted | double | groove | inset | ridge | solid | none
border-width size
border-bottom size
border-left size
border-right size
border-top size
border-bottom-width size
border-left-width size
border-right-width size
border-top-width size
clear left | right | both | none
color color
direction text ltr | rtl
display block | inline | list-item | none
float left | right | none
font text
font-family text font
font-size text size
font-style text normal | italic | oblique
font-variant text normal | small-caps
font-weight text weight
height size
letter-spacing text size
line-height text size
list-style
list-style-image
list-style-position inside | outside
list-style-type circle | decimal | disc | lower-alpha | lower-roman | upper-alpha | upper-roman
margin size
margin-bottom size
margin-left size
margin-right size
margin-top size
padding size
padding-bottom size
padding-left size
padding-right size
padding-top size
text-align text left | center | right | justify
text-decoration text underline + overline + line-through | none
text-indent text size
text-transform text capitalize | lowercase | uppercase | none
unicode-bidi text normal | embed | bidi-override
vertical-align bottom | text-bottom | baseline | sub | middle | super | text-top | top
white-space pre | nowrap | normal
width size
word-spacing text size

Pseudoclasses

:link A Hyperlink(<a href="url">) anchors but not target(<a name="x">) anchors
:active A Active (selected) link
:visited A Visited link
:hover A Anchor (link or target) which mouse is over IE
:first-letter any block element first line of text in the block
:first-line any block element first letter of text in the block

Values

color
#ffffff
rgb(255,255,255)
rgb(100%,100%,100%)
aqua black blue fuchsia gray green lime maroon
navy olive purple red silver teal white yellow
size
15px pixels
0.5em em's
12pt points
1in inches
2.54cm centimeters
200% percent
xx-small x-small small medium large x-large xx-large
weight
lighter normal bold bolder
100 - 900 (in increments of 100)
font
font name
serif sans-serif monospace