B.42. font-style

This property lets you choose between the normal, italic, and oblique styles of a font.

Inherited: Yes

See also: Section B.37font

B.42.1. Value

normal, oblique, or italic.

Initial value: normal

B.42.2. Compatibility

CSS Version: 1

Supported by all CSS-compatible browsers.

Most browsers will artificially skew a normal font to create an italic style if none is available. Additionally, most browsers will treat the oblique setting as a synonym for italic, rather than select or generate an actual oblique font style.

B.42.3. Example

The default style sheets employed by most browsers specify that emphasis (em) elements should be displayed in an italic font. If you wanted to display emphasis with an underline instead, you would have to make a point of setting the font-style to normal:

em {
  font-style: normal;
  text-decoration: underline;
}

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.13.173