April 2005
Intermediate to advanced
336 pages
6h 33m
English
You can style the case of text and vary its font using two different properties.
To transform case, you use the text-transform property and a value of capitalize, uppercase, lowercase, or none.
To vary text, you use the font-variant property and a value of small-caps or normal (which is the default).
Example 9-6 shows a document employing transformation and variants.
Example 9-6. Transforming and varying text with CSS
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>working with style</title><style type="text/css">body {font-family: Georgia, Times, serif; color: black;} ...
Read now
Unlock full access