Skip to content

Instantly share code, notes, and snippets.

@40thieves
Created June 11, 2014 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 40thieves/4150966b21f319788951 to your computer and use it in GitHub Desktop.
Save 40thieves/4150966b21f319788951 to your computer and use it in GitHub Desktop.
Clipped avatar CSS
<!DOCTYPE html>
<html>
<head>
<title>Avatar CSS</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>Avatar CSS</h1>
<div class="avatar">
<div class="avatar-wrapper">
<img src="avatar.jpg">
</div>
</div>
</body>
</html>
.avatar {
position: relative;
}
.avatar-wrapper::before {
position: absolute;
background-color: white;
content: '';
height: 150px;
width: 10px;
}
.avatar img {
width: 150px;
height: 150px;
border-radius: 75px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment