0
Why text-decoration: none isn't working here? (Solved)
2 Answers
+ 3
Cause you apply that to the <p> while you should be applying that to the <a> inside the <p>.
+ 3
The text-decoration-line is not inherited.
You can use the selector .forgot-password a instead.
https://www.w3.org/TR/css-text-decor-3/#propdef-text-decoration
Name: text-decoration
Inherited: see individual properties
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
https://www.w3.org/TR/css-text-decor-3/#propdef-text-decoration-line
Name: text-decoration-line
Inherited: no (but see prose, above)