Prev | Current Page 468 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

0 1.5 1.0 7.0 6.0 5.5
Full Full Full Full Full Full Full Full Full Full
Internet Explorer for Windows versions up to and including 7 don??™t support the
value inherit.
323 Typographical Properties
font-style
font-style: { italic | normal | oblique | inherit } ;
This property sets the font style to be
applied for the text content of an
element.
Value
italic This value specifies a font
that??™s labeled ???italic??? in the
user agent??™s font database.
If such a font isn??™t available,
it will use one labeled
???oblique.???
Example
This style rule makes all elements that
belong to the "ship" class render as italics:
.ship {
font-style: italic;
}
normal This value specifies a font classified as ???normal??? in the user agent??™s font
database. This is typically a Roman (upright) font for Latin characters.
oblique This value specifies a font labeled ???oblique??? in the user agent??™s font
database. This may not be a true oblique font, but may be generated by
slanting a Roman font.


Pages:
456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480