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

0 points
Submitted by Russell
over 10 years

'Rock Your Selectors' (4/23)

Hi guys, I’m stuck on this page, like a few others. How can I get round this?

p { color: #00e5ee; } div p { color: #cc0000; }

  • { border: 2px solid; color: #3a5fcd; } (BTW that is actually an asterisk that shows as a dot on here.)

Answer 52a0b2998c1ccc50d1004560

7 votes

Permalink

p{ color:#00E5EE; } div p{ color:#CC0000; } *{ border: 1px dashed #3A5FCD; }

points
Submitted by josh carroll
over 10 years

2 comments

josh carroll over 10 years

4/23 css overview

J.J. Jansen over 10 years

Why only one div?

Answer 529d166babf8213b4c000776

5 votes

Permalink

* {border: 2px solid;border-color:  #3a5fcd;}

border color, not border

points
Submitted by stetim94
over 10 years

3 comments

stetim94 over 10 years
* { border: 2px solid #3a5fcd; } 

i would even use this one, much easier

Russell over 10 years

Thanks, I see where I went wrong. :)

Ray about 10 years

Don’t get it! Had the identical line but kept getting “RBrace expected in line 9 Col 21” .Cut and pasted stetim94 line and it worked. Thanks stertim