Introduction To CSS
Single Page Reference

A much more complete reference can be found at the W3Schools page,

http://www.w3schools.com/cssref/default.asp

Text & Formatting Properties

PropertyValues or UnitsWhat It DoesExample
color:A named colour.Sets the colour of the textcolor:green;
font-family:The name of a fontSets the font that you want to usefont-family: Verdana;
font-size:pt pxSets the size of the font in points or pixels.font-size: 12pt
font-weight:bold normalSets the font to bold or normalfont-weight: bold;
font-style:italic normalSets the font to italic or normalfont-weight: italic;
letter-spacing:pxSets the space between each letter in pixels.letter-spacing: 4px;
text-align:center left right justifySets the text alignmenttext-align: justify;
text-decoration:underline overline line-through noneChanges the way that the text is decoratedtext-decoration: underline;
word-spacing:pxSets the space between each word in pixels.word-spacing: 10px;

Box Properties

PropertyValues or UnitsWhat It DoesExample
width:px %Sets the width in pixels or a % of the available spacewidth: 100%;
height:px %Sets the height in pixels or a % of the available spaceheight: 100px;
background-color:A named colour.Sets the background colourbackground-color: pink;
padding:px %Sets the space between the contents of the box and its borderpadding: 10px;
border:px solid & colourSets the width and colour of all borders. Can also be set to 0.border: 1px solid black;
border-left:px solid & colourSets the width and colour of the border. Can also be set to 0.border-left: 1px solid green;
border-right:px solid & colourSets the width and colour of the border. Can also be set to 0.border-right 1px solid blue;
border-top:px solid & colourSets the width and colour of the border. Can also be set to 0.border-top:1px solid yellow;
border-bottom:px solid & colourSets the width and colour of the border. Can also be set to 0.border-bottom:1px solid white;
border-collapse:collapse separateMakes the table cell borders collapse together or stay separate.border-collapse: collapse;