This forum is now read-only. Please use our new forums! Go to forums
Why is this not working?
a:hover{
text-decoration: none;
}
a:first-child{ color: #cdbe70; }|
a:nth-child(3){
color: #ffc125;
}
Oops, try again! Did you remember to set your third to the color #FFC125?
I don’t know what I’m doing wrong. I don’t know what else to do.
Answer 516835f6aab4a70fb90051f1
well the problem goes on the html did you set your code corrently? it suppose to be like that for html
<a href="techguys1.blogspot.com">Latest Technology News</a>
<p></p>
<a href="Facebook.com">Facebook</a>
<p></p>
<a href="google.com">Google</a>
then for css a:hover { text-decoration:none; } a:first-child { color:#CDBE70; } a:nth-child(3) { color:#FFC125; }
Answer 5168dcff21caa2702f001d8f
Answer 5167b99cc624bd7d0c000169
Answer 516836102010b2562000554a
Answer 516863602e543493ab0063e2
My first try was passed and after I have tried your code it won’t…wtf
Answer 516d779877d080b3410006c8
I get the similar situation. Can’t set my first-child color. My HTML is here.I think it’s right.
<body>
<!--Add your HTML below!-->
<a href="http://kenh14.vn">Kenh 14</a>
<a href="http://google.vn">Google</a>
<a href="http://yahoo.com.vn">Yahoo</a>
</body>
Anyone can tell me why it’s not working?
Answer 516e50716332d3cfd300448e
I struggled with this one a lot - for some reason, even when I pasted in code others said worked for them, it didn’t work for me. While not in keeping with the instructions, here is the CSS that worked for me (at least to get a “congratulations!”)
a:hover { text-decoration:none; }
a {color: #CDBE70; }
a:nth-child(3) { color: #ffc125; }
Answer 516e7f8f656e6597fc004220
Answer 516ec508bb993487ed000fac
There’s no problem with the exercise, make sure that you have your Index correctly code:
<body>
<a href="http://www.google.com">Google</a>
<a href="http://www.google.com">Google</a>
<a href="http://www.google.com">Google</a>
<body>
You’re supposed to reference <a>
and not (<li>
,<body>
,<div>
,etc..)
So for example:
<li><a href="http://www.google.com">Google</a></li>
<li><a href="http://www.google.com">Google</a></li>
<li><a href="http://www.google.com">Google</a></li>
Will always reference <a>
as first-child because you made new lines.
Even if you get the code correct in the .css, the html might be incorrect, you’re supposed to have 3 different colors for each website.
Answer 516fdf88ebf1ac2ed2004178
i think my code is right but just some problem came out without reason…
1 comments
well your code is correct on the css, but on the html you’re splitting your <a>
coding with <p>
. If you get rid of the <p>
i’m sure that your code will be fine :)
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
1 comments
same