Why text-decoration: none isn't working here? (Solved) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why text-decoration: none isn't working here? (Solved)

https://code.sololearn.com/WqslujKI7JIg/?ref=app

19th Jan 2022, 2:31 PM
Ray
Ray - avatar
2 Answers
+ 3
Cause you apply that to the <p> while you should be applying that to the <a> inside the <p>.
19th Jan 2022, 2:35 PM
Ipang
+ 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)
19th Jan 2022, 2:58 PM
FanYu
FanYu - avatar