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

0 points
Submitted by thuswm
over 10 years

Multiple Selectors (CSS Selectors 2/23) - Please tell me where I'm wrong!

I have completed all lessons in the HTML course except for this one. I have tried all kinds of variations here without getting the green light. I however still believe I have written the correct code in the CSS file. The result also seems correct to me since only the last line of text turns out red.

Here is what I have in my CSS tab:

div div div h3 
{
    color: red;
}

Can someone please tell me where I am going wrong. I don’t see it!

Additional information: On the first row of code in my stylesheet there is a small i-symbol. Hovering the pointer over it shows a text saying “Heading (h3) should not be qualified”. What does this mean exactly? Does it mean that I should drop the h3 from my code? I have done this but still no luck!

Answer 5252e510abf821afaa0006f8

2 votes

Permalink

this worked for me: div div div { color: red; }

just take out the h3

points
Submitted by Jakob Puckett
over 10 years

1 comments

thuswm over 10 years

I have tried this but it does not give me the green light.

Answer 52581afa548c35fb100041a7

1 vote

Permalink

div div div h3{ color: red; }

This is how I wrote it and it worked for me.

points
Submitted by licosha
over 10 years

4 comments

thuswm over 10 years

I have tried this also but no luck. To be honest it is only a different formatting from what I already have but I am willing to try anything that solves this task!

Merve over 10 years

yes, it is working, i tried :)

Piotr Michałowski over 10 years

i think it was fixed - as i commented before, it didn’t work before, but is working now

Ric Andrews over 10 years

Thank you sooooooooo much.no really

Answer 5264e28780ff33fc6800a475

1 vote

Permalink

Same problem here.

My code is just like thuswms from first post but i’m geting “ Oops, try again! It looks like you accidentally turned the first h3 red! “ which isn’t red on preview window.

None of the suggestions worked for me.

Please fix this.

points
Submitted by Piotr Michałowski
over 10 years

Answer 52531124f10c600673001c29

0 votes

Permalink

read first paragraph states asterisk covers all of them

points
Submitted by pwillis90
over 10 years

1 comments

thuswm over 10 years

Yes, but the task is to only make the nested (inside the third div) red.

Answer 525d21cbf10c6089e1002734

0 votes

Permalink

I get the same error. Tried all the suggestions, but still… Seems to be a bug. :o(

points
Submitted by Bastian Eppler
over 10 years

1 comments

Bastian Eppler over 10 years

I tried the same code in Chrome instead of Firefox and it worked.

Answer 5263afe4548c3568cf007442

0 votes

Permalink

Don’t put the /**/ stuff, like they show in the lesson. That thing is a comentt, it is not part of the code! Sorry for the bad english!;)

points
Submitted by DanielaBorges
over 10 years

3 comments

thuswm over 10 years

I understand your English fine! I have no comments in my code so it can’t be that causing my problems.

DanielaBorges over 10 years

I was stucked in this exercise too, so I put this way: div div div h3 { color: red; }

DanielaBorges over 10 years

Are you considering the ; ?

Answer 52b93853631fe9dd4d001bd8

0 votes

Permalink

Just add body! It will work!

body { color:blue; }

div div div h3 { color: red; }

points
Submitted by Shankar
over 10 years

Answer 52c848f59c4e9d081e0026d6

0 votes

Permalink

Still same error, seems like some bug here !!! The evaluation logic seems to be in error!

points
Submitted by pcbinwal
about 10 years

Answer 5264595cabf82185e9003e7f

-3 votes

Permalink

I know how frustrating this exercise can be, so here is some code that works:

<h3>I'm plain old font!</h3>
    <div>
        <h3>Me, too!</h3>
        <div>
            <h3>Me three!</h3>
            <div>
                <h3>Forget you guys. I'm about to be red!</h3>
            </div>
        </div>
    </div>
points
Submitted by joshcallis6
over 10 years

1 comments

JordanRoddis over 9 years

this is wrong code