I have no idea what this is talking about!Rock Your Selectors


#1

Please help I have no idea what this is telling me to do please can you help with the code maybe send a screen shot of your or explain how you did it.Thanks :smile:

Yours AJpython


#2

If you need help, please post your code. You could go back to earlier exercises/glossary if you need a syntax refresher


#3

p {
color: #00E5EE;
border-style:2px
}
p div div div}
color:#CC0000
}

does this help?


#4

set all your paragraphs to color #00E5EE, you done that:

p {
  color: #00E5EE;
}

not sure what border-style is doing there.
The next bit is confusing:

p div div div}
 color:#CC0000
}

why is there is a closing curly bracket (}) after div, this should be a opening curly bracket. You want to select a div, which is nested in another div, which is nested in yet another div, which is nested in a paragraph. You should select a paragraph inside a div, and your universal selector is missing all together (*)


#5

right so I made half light blue and the half red:
/*Add your CSS below!*/
p {
color: #00E5EE;
border-style:2px
}
div p{
color:#CC0000;
}

Now how do I make the border?


#6

why do you have * everywhere? the universal selector (*) can be used as css selector:

* {
  /* some css code */
}

for the border, read about border on MDN


#7

I was trying to make it bold sorry, now it says

Oops, try again. Did you remember to add a border of color #3A5FCD around every element?


#8

did you use the border in the universal selectorr:

* {
  border: value;
}

?

Value is just a placeholder word


#9

Thank you so much! I can move on to my next task! Thanks again!!! :joy:
No I didn't put the universal selector in before.....That's why.....