This forum is now read-only. Please use our new forums! Go to forums

banner
Close banner
0 points
Submitted by Sandra Fiegi
about 11 years

Error message about links text decoration

I keep getting an error message on 5.5. The error message looks like this:

Did you remember to set your link’s text-decoration to none;?

My CSS code looks like this:

h1{ font-family:Verdana, Sans-Serif; color:#576D94; }

p{ font-size:18px; color:#4A4943; font-family:Garamond, Serif; } img{ height:100px; width:300px; border:1px solid #4682b4; a { text-decoration:none; color:#cc0000;

}

Thanks for helping me.

Answer 517a644f763d579e56002b5d

1 vote

Permalink

I tried the same code in css tab i.e. a { text-decoration:none; color:#cc0000; }

But it did not work for me too.

so i tried the below mentioned code in index.html itself and it worked for me.

link

points
Submitted by kanchanvthakur
almost 11 years

1 comments

Caroline David over 10 years

OMG THANK YOU SO MUCH I spent an hour trying out different ways and this was the best way!!!!

Answer 515a543e1bf38e4c27000899

0 votes

Permalink

Hmmmm

I used this code first: a: {color:#cc0000;text-decoration:none} Then I tried this: a:link {color:#cc0000;text-decoration:none} I was so relieved when I found your suggestion, Khadirah a {text-decoration:none;color:#cc0000}. Unfortunately, however, it too did not work.

points
Submitted by Boring B. Badenough
about 11 years

1 comments

Khadirah about 11 years

Hmm, it should have. Awwe :( I don’t know how to help you any further. Sorry

Answer 515b42af77d4b2f3f30004eb

0 votes

Permalink

thanks for your response, Khadirah. When I was looking over the differences between your answer and mine, I noticed I had forgotten to close one of my curly brackets. that made the difference. Thanks so much.

Sandra

points
Submitted by Sandra Fiegi
about 11 years

Answer 5158cd47e44dcbd4c1000176

-1 votes

Permalink

You put the text-decoration and color property and values under the ‘img’ selector. It is supposed to go under its own selector which is the ‘a’ which is from ‘a href’. It will look like this: a { text-decoration:none; color:#cc0000 } I hope I helped :)

points
Submitted by Khadirah
about 11 years

2 comments

Rahul Sawant about 11 years

thanks for help ..i also having same problem …thanks frnd

Khadirah about 11 years

You’re welcome :)