-
-
Save codecademydev/9e860095d3a0ba74daf26148af9f0461 to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<link type="text/css" rel="stylesheet" href="stylesheet.css"/> | |
<title>My Social Network</title> | |
</head> | |
<body> | |
<!--Add your HTML below!--> | |
<div class="friend" id="best_friend"><p>name</p></div> | |
<div class="family"></div> | |
<div class="enemy" id="archnemesis"></div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Add your CSS below!*/ | |
div { | |
position: relative; | |
display: inline-block; | |
margin-left: 5px; | |
margin-top: 5px; | |
text-align: center; | |
height: 100px; | |
width: 100px; | |
border-radius: 100%; | |
border: 2px solid black; | |
} | |
div p { | |
position: relative; | |
margin-top: 40px; | |
font-size: 12px; | |
} | |
.friend { | |
border: 2px dashed #008000; | |
} | |
.family { | |
border: 2px dashed #0000FF; | |
} | |
.enemy { | |
border: 2px dashed #FF0000; | |
} | |
#best_friend { | |
border: 4px solid #00C957; | |
} | |
#archnemesis { | |
border: 4px solid #CC0000; | |
} | |
* { | |
border: 2px solid black; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment