freeCodeCamp/guide/english/css/properties/font-style-property/index.md

21 lines
907 B
Markdown
Raw Normal View History

2018-10-12 19:37:13 +00:00
---
title: Font Style Property
---
## Font Style Property
`font-style` property lets you to change the style of font meaning you can make font italicized. This property accepts following values:
* `normal` - Default value.
* `italic` - Font gets italicized by selecting the font that is classified as italic in its font family.
* `oblique` - Font that classified as oblique in its font family gets used.
`Italic` and `oblique` may look similar. According to [MDN](https://developer.mozilla.org/en-US/) *oblique are just sloped version of the regular face*.
You can also specify angle for the lean degree of font when providing `oblique` value. If angle is not provided, 14 degrees will be used as default.
#### More Information:
* [MDN - font-style](https://developer.mozilla.org/en-US/docs/Web/CSS/font-style)
* [CSS-Tricks - font-style](https://css-tricks.com/almanac/properties/f/font-style/)