Set text to italic with CSS
Question:
How to set text to italic with CSS? Answer:
.italic-text {
font-style: italic;
}
Description:
The font-style
CSS property sets whether a font should be styled with a normal
, italic
, or oblique
face from its font-family
.
Italic font faces are generally cursive in nature, usually using less horizontal space than their unstyled counterparts, while oblique faces are usually just sloped versions of the regular face. When the specified style is not available, both italic
and oblique
faces are simulated by artificially sloping the glyphs of the regular face
Reference:
CSS font-style reference
Share "How to set text to italic with CSS?"
Related snippets:
Tags:
italic txt css, css italic, italic in css, font style italic Technical term:
Set text to italic with CSS