This forum is now read-only. Please use our new forums at discuss.codecademy.com.

CSS: An Overview Forum

View Course » View Exercise

1051 points
Picture
Submitted by
Scylla
over 3 years ago

Text decoration is actually none but it isn't passing.

img {
height:100px;
width:300px;
border:1px solid #4682b4;
color:cc#0000;
text-decoration:none;
}

You see. It says text-decoration:none.


0 votes

permalink

except the text-decoration: none; should be set at your link:
a {
text-decoration and color property here
}

2910 points
593d545c83696644420003b7_64554016
Submitted by
stetim94
over 3 years ago


0 votes

permalink

I'm having the same issues:

a {
text-decoration: none;
color: #cc0000;
}

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

105 points
537b76417c82cac2bc000288_578440427
Submitted by
Lynn Martineau
over 3 years ago

4 Comments

593d545c83696644420003b7_64554016 stetim94 over 3 years ago

is there a link to your stylesheet in html? If yes, might be a glitch, try firefox, chrome, safari, internet explorer

593d545c83696644420003b7_64554016 stetim94 over 3 years ago

also do you have a link to a website in your html file? the error's are written by the creator of the course, and can be misleading. The error doesn't have to be in this bit of css code

537b76417c82cac2bc000288_578440427 Lynn Martineau over 3 years ago

yeah, it would help if I actually linked to the style sheet, wouldn't it! smh

593d545c83696644420003b7_64554016 stetim94 over 3 years ago

that was the error and it is fixed now?


-3 votes

permalink

I have had exactly this same problem. My code seems to be what stetim has suggested but it does not work:
a {
text-decoration:none;
color:#cc0000
}

That code generates the pop up message "did you remember to set the text decoration to none?"

582 points
531d33db631fe9c7e8006cf8_126881068
Submitted by
Bert
over 3 years ago

1 Comment

593d545c83696644420003b7_64554016 stetim94 over 3 years ago

hm.. do you have an image in your html file? is the link to stylesheet present in your css file? possible it sends wrong data to server, the easiest fix would be to try a different browser (chrome and firefox are preferable)