In addition to the properties listed below, you should be familiar with the basic
features of CSS. This includes
Property |
Description |
Values |
font-family |
Sets the font |
Font name, or generic font (serif, sans-serif, or monospace) |
font-size |
Sets font size |
Pixels, percent, or em units |
font-weight |
Sets bold or normal |
normal or bold |
font-style |
Sets font style |
normal, italic, or oblique |
line-height |
Sets height for a line of text |
Pixels, percent, or em units |
text-align |
Sets text justification |
left, right, center, or justify |
Property |
Description |
Values |
width |
Sets the width for an element |
Pixels, percent, or em units |
padding |
Sets distance between content and border |
Pixels, percent, or em units |
border |
Sets border detail |
[type] [size] [color] |
margin |
Sets spacing between border and neighboring elements |
(Pixels, percent, or em units) or (auto) |
float |
Moves element out of normal flow |
left or right |