Last active
February 11, 2017 04:25
-
-
Save neilgee/4d0cd16a007796b0779ff066ee5ea9a2 to your computer and use it in GitHub Desktop.
CSS Arrow Pointer Nodules using before and after pseudo selectors
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
/* Codepen - http://codepen.io/neilgee/pen/LxXJrE */ | |
.content { | |
position: relative; | |
background: #20988f; | |
} | |
.content:after, .content:before { | |
top: 100%; | |
left: 50%; | |
border: solid transparent; | |
content: " "; | |
height: 0; | |
width: 0; | |
position: absolute; | |
pointer-events: none; | |
} | |
.content:after { | |
border-top-color: #20988f; | |
border-width: 8px; | |
margin-left: -8px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment