HTML and CSS Reference
In-Depth Information
Table 14.2 Font Size Units (continued)
millimeters (mm)
points (pt) 1/72th of an inch
picas (pc) 12 points
Table 14.3 User Agent Determined Font Sizes
CSS Absolute Sizes
HTML Font Size
xx-small
1
x-small
2
small
3
medium
4
large
5
x-large
6
xx-large
7
Here are some examples:
font-size: 10pt
top: 20px
margin: 1em
margin-right: 20%
font-size: xx-large
font-size: 150%
14.4.2 Working with Colors
What is style without color? Tables 14.4 and 14.5 give information for managing color.
You can use these properties to create color for the document's background and fonts,
margins, borders, and more. The colors can be expressed with real names (e.g., red , blue ,
yellow , magenta ) or their corresponding hexadecimal values (e.g., #FF0000 , #0000Ff ,
#ffff00 , #ff00FF ).
Table 14.4 Color Properties
Property
Value/Example
Elements Affected
background-color
red, blue, #F00
All
color
red, green, #F00, rgb(255,0,0)
All
 
 
Search WWH ::




Custom Search