On Hover Text Decoration None
The text decoration property adds an underline overline line through or a combination of lines to selected text.
On hover text decoration none. Text decoration color can inherit or accept any css color value including named colors hex colors rgba and hsla. You can add both texts in the html but vary the css display property based on hover. It can also set the underline color on links. This example sets the text decoration property to none.
Draws a 1px line across the text at its baseline. Here is a little modification. Stack overflow for teams is a private secure spot for you and your coworkers to find and share information. By setting the text decoration to none to remove the underline from anchor tag.
Assuming the second text add has a class named add label. But the newer implementations accounting for style and color are a bit more troublesome. This little and simple trick i just learnt may help someone trying to avoid before or after pseudo elements altogether for whatever reason in changing text on hover. In its most basic form text decoration is widely supported.
Line through is all superduperfine. The text decoration property of css allows to decorate the text according to requirement. No line is drawn and any existing decoration is removed.