Skip to content

Instantly share code, notes, and snippets.

@dwarjie
Created April 5, 2018 07:36
Show Gist options
  • Select an option

  • Save dwarjie/a7f4dc9ff3cd7e1e83ec6c5b0aa5ce4a to your computer and use it in GitHub Desktop.

Select an option

Save dwarjie/a7f4dc9ff3cd7e1e83ec6c5b0aa5ce4a to your computer and use it in GitHub Desktop.
Here is the code for the series that I'm going (CSS Icons). You can use it on your code.
<!DOCTYPE html>
<html>
<head>
<title>Profile Photo</title>
<link rel="stylesheet" type="text/css" href="main.css">
<meta charset="utf-8">
</head>
<body>
<div class="container">
<div class="profile-icon"></div>
<div class="profile-icon-body"></div>
</div>
</body>
</html>
* {
margin: 0;
padding: 0;
border: 0;
}
.container {
margin-right: 40%;
margin-left: 40%;
margin-top: 50px;
}
.profile-icon {
/* positioning*/
background-color: black;
margin-left: auto;
margin-right: auto;
margin-bottom: 0px;
margin-top: 140px;
width: 200px;
height: 100px;
/* design */
border-radius: 10px;
border-top-right-radius: 100px;
border-top-left-radius: 100px;
}
.profile-icon:before {
content: '';
background-color: black;
width: 100px;
height: 100px;
position: absolute;
top: 50px;
left: 625px;
/*design*/
border-radius: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment