Search results
Results from the WOW.Com Content Network
All links in HTML are underlined by default. Sometimes you see that links are styled with no underline. The text-decoration: none; is used to remove the underline from links, like this:
.no-style { text-decoration: none !important; } This has two advantages. It will not affect all anchor tags, just the ones with the "no-style" class added to them. It will override any other styling that may otherwise prevent setting text-decoration to none.
If you need different color and decoration styling you can easily override the defaults using the below code snippet. a, a:hover, a:focus, a:active { text-decoration: none; color: inherit; }
The text-decoration property specifies the decoration added to text, and is a shorthand property for: text-decoration-line (required) text-decoration-color; text-decoration-style; text-decoration-thickness; Show demo
The text-decoration shorthand CSS property sets the appearance of decorative lines on text. It is a shorthand for text-decoration-line, text-decoration-color, text-decoration-style, and the newer text-decoration-thickness property.
The text-decoration property adds an underline, overline, line-through, or a combination of lines to selected text. h3 { text-decoration: underline; } Values. none: no line is drawn, and any existing decoration is removed. underline: draws a 1px line across the text at its baseline.
Text Decoration. The text-decoration property is mostly used to remove underlines from links:
In its most basic form, text-decoration is widely supported. Setting the line , with text-decoration: none , text-decoration: underline , text-decoration: overline , and text-decoration: line-through , is all superduperfine.
The text-decoration CSS property specifies the appearance of decorative lines used on text. It is a shorthand for setting one or more individual text-decoration values in a single declaration, which include text-decoration-line, text-decoration-color, and text-decoration-style.
The text-decoration property allows text to be decorated through one of five properties: underline, overline, line-through, blink, or the default, none. For example, one can suggest that links not be underlined with. A:link, A:visited, A:active { text-decoration: none }