Won't accept Text-decoration for the link


I don't understand why it isn't accepting what I've written. I can change the text-decoration to line-through or overline and it will change but it won't change with none and since none is the requirement, I can't get past the lesson. https://www.codecademy.com/courses/web-beginner-en-UuBLw/0/5?curriculum_id=50579fb998b470000202dc8b

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

“Oops, try again. Did you remember to set your link’s text-decoration to none;?”


div {
height: 50px;
width: 120px;
border-color: #6495ed;
background-color: #bcd2ee;
border-style: solid;
border-width: 3px;
border-radius: 5px;
margin: auto;
text-align: center;
color: blue;
text-decoration: none;
font-family: Arial;

<do not remove the three backticks above>

Is div your actual link? You may want to apply text-decoration: none; to your anchor tags (a) instead.

That was the problem, thanks! It changed the font by putting it under div so I thought it would work with the rest. put color and text-decoration under a and it worked. Thanks again.

Glad I could help out ^^.

1 Like

Hey I also wanna say thank I was having the same problem,Thank You :grin:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.