SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 585 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"

After the automatically generated style is created, you can apply it to other selections.
FIGURE 8-14
If the text size you want is not listed, change it in the Size field.
CROSS-REF CROSS-REF
285
Working with Text 8
In CSS, the aptly named font-size property controls the size of the text. When declared in a selector,
font-size is used like this
h1 { font-size: 36px; }
or like this
#mainsidebar { font-size: 1.2em; }
or this
.legal { font-size: xx-small; }
As you can see, the font-size value may be a precise value (36px), a percentage (1.2em), or an absolutesize
keyword (xx-small). In addition to pixels??”abbreviated as px??”CSS supports other measurement systems:
points (pt), inches (in), centimeters (cm), millimeters (mm), and picas (pc).
Many designers advocate using pixel measurements as a way to achieve a consistent look and
feel across browsers.
CSS provides three different relative-based measurement systems for sizing text: em, ex, and percentage (%).
All three assume that a specific font size has been declared for the parent or containing tag; if no specific font
size is defined, the default setting of the parent??™s font size is used for comparison. A font-size of 1em is equivalent
to whatever the containing tag??™s font-size is; for example, if the containing
tag has a font-size of
20px, a selector with a font-size set to 1.


Pages:
573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597