{font-style:} Font-Style Property - CSS Property Reference :: webDev

{font-style:}

						font-style: { italic | normal | oblique | inherit } ;
					

The {font-style:} property sets the font style to be applied to the text content of an element.

  • The following keywords can also be used with {font-style:}
  • The {italic;} value specifies a font that's labeled "italic" in the user agent's font database. If such a font is not available, it will use one labeled "oblique."
  • The {normal;} value specifies a font classified as "normal" in the user agent's font database. This is typically a Roman (upright) font for Latin characters.
  • The {oblique;} 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.

In Internet Explorer for Windows versions up to and including 7, the calculation of widths for inline blocks is incorrect when an italic or oblique font is used. This can cause the element to OVERFLOW - STRONG OR CODE???, which may break float-based layouts due to the inccorrect handling of OVERFLOW AGAIN!!! in those browsers.

Internet Explorer for Windows versions up to and including 7 don't support the value {inherit;}.

{font-style:} Font-Style Property - CSS Property Reference :: webDev