CSS-Lesson 10
Fonts and Texts 2
Fonts-generic names
The generic names for the main font families are:
- serif
- sans-serif
- fantasy
- cursive
- mono space
Text properties
- The property 'text-align' usually found in 'boxes' has the main values 'left', 'center', 'right' and 'justify'. These work in the same way as the text align buttons in a word-processor.
- The property 'text-decoration' has values 'underline', 'overline' and 'line-through'. These do not seem very useful. Underline might be used for emphasis, but underlining should be reserved for HTML links (because users expect it).
- The text-indent property has a percentage or other size unit.
- The text-transform property has the values 'capitalize', 'uppercase' or 'lowercase'. Capitalize puts the first letter of each word in capitals. The other two values are obvious.
Cursor
The cursor property
Try moving your mouse (cursor) pointer over the grey squares.
cursor value | cursor graphic | cursor value | cursor graphic |
---|---|---|---|
auto | se-resize | ||
default | sw-resize | ||
pointer | s-resize | ||
crosshairs | w-resize | ||
move | text | ||
e-resize | wait | ||
ne-resize | help | ||
nw-resize | progress | ||
n-resize | url |