Is there a way to remove the <i> tag in italics using CSS?
How to remove the effect of italics from <i> so that I can do this:
<span> test<i>test</i> </span> I fill some text in <i> with jQuery innerHtml, so it is italicized, but I don't want the italic to have an effect.
Is it possible to somehow remove the italic effect using CSS?
I can not use another tag. I can only use <i> .
+12
O-mkar
source share5 answers
You just need to use this CSS code:
.no-italics { font-style: normal; } HTML code:
<span> test <i class='no-italics'>test</i> </span> +27
Winner crespo
source shareUse the font style:
i{font-style:normal;} +7
Bhojendra rauniyar
source shareYou can do any formatting using CSS.
Like:
b { font-weight: normal; } change bold text to plain text.
Same,
i { font-style: normal; } make the font style <i> normal (not in italics).
+5
mehulmpt
source shareYou can use the font-style: normal CSS font-style: normal to get this effect. Then you can do your jQuery to put the text in the tag:
+2
God is good
source shareI have a similar scenario. But italics still persist .. Please tell me how to remove italics.
0
naga
source share