Rock Your Selectors Problem

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/web-beginner-en-WF0CF/0/4?curriculum_id=50579fb998b470000202dc8b#

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
My code says that add a border of a certain color around every element? It’s not working for some reason.

```

/Add your CSS below!/
p{
color:#00E5EE;
}

div p{
color:#CC0000;

border{
color:red;
}

  • {
    border:2px;
    color:#3A5FCD;
    }
<do not remove the three backticks above>
border{
 color:red;   
}

border is not a html element.here you have to write which html element you want to target.
Instruction:

Put a border with the hex color #3A5FCD around every HTML element. It can be solid, dotted, dashed, 2px, 3px, whatever you like!

* means you are selecting all the html elements.

there are two ways you can do that

you can separate every property like

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

or

*{
    border:2px solid #3A5FCD;
}

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.