Rock Your Selectors Problem


#1


https://www.codecademy.com/courses/web-beginner-en-WF0CF/0/4?curriculum_id=50579fb998b470000202dc8b#


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


#2

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

#3

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