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
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
Justin Michael
in reply to Lorraine Lee • • •font-style - CSS | MDN
developer.mozilla.orgEric A. Meyer
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;}
```
Lorraine Lee likes this.
Lorraine Lee
in reply to Eric A. Meyer • •