Visit Mozilla.org

CSS:font-style

From MDC

« CSS Reference

[edit] Summary

The font-style property specifies normal (also known as upright or roman), italic, and oblique faces within a font family.

[edit] Syntax

font-style: normal | italic | oblique

[edit] Values

normal, oblique, italic 
Specifies that the user-agent should choose the 'normal', 'oblique' or 'italic' typeface within the font-family.

[edit] Examples

View Live Examples


h1 { font-style: italic }
p { font-style: oblique }

[edit] Notes

[edit] Specifications

[edit] Browser compatibility

[edit] See also

font, font-family, font-size, font-size-adjust, font-stretch, font-style, font-variant, font-weight, @font-face