Skip to main content


Is there a CSS property for "not italic?" For example, if I have a selector with a font-style of italic, and I'd like <em> or <i> tagged elements within those elements to display as non-italic.

#CSS

#css
in reply to Lorraine Lee

Yep, you're looking for font-style: developer.mozilla.org/en-US/do…
in reply to Lorraine Lee

Something like this would seem to meet your need:

```
.warning {font-style: italic;}
.warning :is(em, i) {font-style: normal;}
```