Won't accept Text-decoration for the link


#1


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

"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;
}


#2

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


#3

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.


#4

Glad I could help out ^^.


#5

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


#6

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