O-mkar O-mkar - 6 months ago 24
HTML Question

Is there any way to remove italic effect <i> tag using css

How do i remove italic effect of

<i>
tag so i can

<span >test<i>test</i>
</span>


I am filling some text in
<i>
tag using jquery inner html so it comes in italic so i don't want italic effect is there any way i can remove italic effect using css. i cant use other tag so only need to use
<i>
tag.

Answer

Just need to use the next CSS code:

CSS code

.noItalics{
    font-style: normal;   
}

HTML code

<span >test <i class='noItalics'>test</i>
</span>