Exercise 5 how do you do it?


#1

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??


#2

read this and format your code:


#3

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.


#4

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