Need help with Design a button


#1

div {
height: 50px;
width: 120px;
border-color: #6495ED;
background-color: #BCD2EE;
border-style: solid;
border-width: 2px;
border-radius: 5px;
margin: auto;
text-align:center;
}
span {
text-decoration: none;
color: red;
font-family: Arial;
}

This is my code, I keep getting the error "Did you remember to set your links text decoration to none?"

I am on Adding the link. Lesson 5.


#2

If your links are in an anchor, or whatever HTML element, you should target that element and set its CSS property as, text-decoration: none;.

A link to the exercise in question might be helpful.

Thank you. :slight_smile:


#3

https://www.codecademy.com/courses/web-beginner-en-UuBLw/0/5?curriculum_id=50579fb998b470000202dc8b

<div>
	<a href="http://www.pandora.com/"><span>Pandora Sation</span></a>
	</div>

#4

So, you should target the anchor element.

a {
    text-decoration: none;
}

#5

Oh wow, completely forgot about the a{ }... Thank you so much!


#6

You're welcome.

Have fun coding! :slight_smile: