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

0 points
Submitted by thomas_bielke
almost 11 years

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

2 votes

Permalink

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

points
Submitted by RexLow
almost 11 years

Answer 5168dcff21caa2702f001d8f

1 vote

Permalink

just try to take care of your html, some times it’s tricky and practice all the time so you will get it smoothly ever

points
Submitted by RexLow
almost 11 years

Answer 5167b99cc624bd7d0c000169

0 votes

Permalink

My first one is not working.

points
Submitted by Nick Pappagiorgio
almost 11 years

1 comments

RexLow almost 11 years

same

Answer 516836102010b2562000554a

0 votes

Permalink

take care for the paragraph attribute

points
Submitted by RexLow
almost 11 years

Answer 516863602e543493ab0063e2

0 votes

Permalink

My first try was passed and after I have tried your code it won’t…wtf

points
Submitted by Changzhe Peng
almost 11 years

Answer 516d779877d080b3410006c8

0 votes

Permalink

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?

points
Submitted by Nhung
almost 11 years

Answer 516e50716332d3cfd300448e

0 votes

Permalink

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

points
Submitted by Kevin Wheeler
almost 11 years

Answer 516e7f8f656e6597fc004220

0 votes

Permalink

i think there is a problem with the exercise

points
Submitted by RexLow
almost 11 years

Answer 516ec508bb993487ed000fac

0 votes

Permalink

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.

points
Submitted by Rony Valenzuela
almost 11 years

Answer 516fdf88ebf1ac2ed2004178

0 votes

Permalink

i think my code is right but just some problem came out without reason…

points
Submitted by RexLow
almost 11 years

1 comments

Rony Valenzuela almost 11 years

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 :)