Exercise 5 how do you do it?

https://www.codecademy.com/courses/web-beginner-en-jNuXw/0/5?curriculum_id=50579fb998b470000202dc8b

My Social Network
hi
hello
:(
</body>

CSS:div{
height:100px;
width:100px;
border-radius:100%;
border:2px solid black;
}
#friend{
border:2px; dashed #008000;
border:dashed;
border:#008000;
}
#family{
border:2px dashed #0000FF;
}
#enemy{
border:2px dashed #FF0000;
}

Oops, try again. Did you remember to give your .friend class a border of 2px dashed #008000?

What did I do wrong??

read this and format your code:

https://discuss.codecademy.com/t/how-do-i-format-code-in-my-posts/51139

family, friend, enemy are css classes, so you need to use the class selector:

.friend{
   border:2px; dashed #008000; // remove ; after 2px
   border:dashed; // you don't need it
   border:#008000; // you don't need it
}

border is a shorthand property.

1 Like

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