8em/1.4
??? Helvetica, Arial,
??? "Luxi Sans", sans-serif;
}
This style rule sets the font for the class
"dialog" to be the system font used for
dialog boxes, but changes the font size to
twice that of the parent element??™s:
.dialog {
font: message-box;
font-size: 200%;
}
As an alternative to the aforementioned syntax, the value can be specified using
one of the special keywords for system fonts. These keywords imply all of the font
properties in one go, and can??™t be combined with other property values such as a
font weight or font size, although those traits can be modified in subsequent
declarations. The keywords are:
caption selects the font used for captioned controls such as buttons
icon selects the font used to label icons
menu selects the font used in menus
Typographical Properties
The Ultimate CSS Reference 326
message-box selects the font used in dialog boxes
small-caption selects the font used for labeling small controls, or a smaller
version of the caption font
status-bar selects the font used in window status bars
Note that the system fonts can only be set with this shorthand property; not with
the font-family property.
Pages:
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484