Use classes to add class


#1

Please can anyone tell me what's the problem with my code?
My 3th div does not work even I think I do everything in the right way



div {
display: inline-block;
margin-left: 5px;
height: 100px;
width:100px;
border-radius: 100%;
border: 2px solid black;
}
.friend {
border: 2px dashed #008000;
}
.family {
border: 2px dashed #0000FF;
.enemy {
border: 2px dashed #FF0000;
}


#2

.family {
border: 2px dashed #0000FF;
// missing }

see comment, a } is missing to mark the end of the class family css selector


#3

oooh yeah))
thanks a lot!!


#4