Prev | Current Page 555 | Next

Craig Grannell

"The Essential Guide to CSS and HTML Web Design"


See also Chapter 3, ???Defining font size and
line height.???
xx-small |
x-small | small |
medium | large |
x-large | xxlarge
| smaller |
larger | length |
percentage
Defines the font family of an element.
Takes the form of a prioritized commaseparated
list, which should terminate in a
generic family name (cursive, fantasy,
monospace, serif, or sans-serif).
Multiple-word font-family names must be
quoted (e.g., "Times New Roman"). Readers
used to American typographical
conventions should take care not to put
commas inside the closing quotes.
Example:
font-family: Georgia, "Times New
?? Roman", serif;
See also Chapter 3, ???Defining fonts.???
(family name) |
(generic family)
When using line-height, you must
combine it with the font-size property
using the syntax font-size/line-height
(e.g., 12px/18px). Examples (using selected
values):
font: bold 12px/16px Verdana,
?? sans-serif;
font: 85%/1.3em Georgia, serif;
See also Chapter 3, ???Styling text using CSS???
and ???CSS shorthand for font properties.???
Additional values for the font property are
also available: caption, icon, menu,
message-box, small-caption, status-bar.
These set the font to system fonts, or the
nearest equivalent, and are not available
via font-family. However, these values are
rarely, if ever, used.
CSS REFERENCE
481
D
Property Values Description Inherited
font-style Yes
font-variant Yes
font-weight Yes
height Sets the content height of an element.


Pages:
543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567