"you are here" mark in css
Last active
August 29, 2015 14:11
-
-
Save tankred/5540e0fcdde2df344d5d to your computer and use it in GitHub Desktop.
you are here
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
<div class="center"> | |
<div id="yah"></div> | |
</div> |
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
#yah { | |
position: relative; | |
width: 64px; | |
height: 160px; | |
} | |
#yah:before { | |
content: ""; | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 40px; | |
height: 40px; | |
border: 20px solid #fff; | |
-moz-border-radius: 50px 50px 0 50px; | |
border-radius: 50px 50px 0 50px; | |
-webkit-transform: rotate(-45deg); | |
-moz-transform: rotate(-45deg); | |
-ms-transform: rotate(-45deg); | |
-o-transform: rotate(-45deg); | |
transform: rotate(45deg); | |
background-color:#fff; | |
} | |
body { | |
background:#1D1F20; | |
} | |
.center { | |
position: absolute; | |
left: 50%; | |
top: 50%; | |
transform: translate(-50%, -50%); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment