How can I remove the underline in a subscript text enclosed in the <u>
tag with CSS?
This doesn't work.
u sub {
text-decoration: none;
}
<u>The text should be underlined,<sub>but not the subscript</sub></u>
How can I remove the underline in a subscript text enclosed in the <u>
tag with CSS?
This doesn't work.
u sub {
text-decoration: none;
}
<u>The text should be underlined,<sub>but not the subscript</sub></u>
You can set sub
to display: inline-block;
u sub {
display: inline-block;
}
<u>The text should be underlined,<sub>but not the subscript</sub></u>