Created
June 11, 2014 10:46
-
-
Save 40thieves/4150966b21f319788951 to your computer and use it in GitHub Desktop.
Clipped avatar CSS
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> | |
<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> |
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
.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