Skip to content

Instantly share code, notes, and snippets.

@neilgee
Last active February 11, 2017 04:25
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 neilgee/4d0cd16a007796b0779ff066ee5ea9a2 to your computer and use it in GitHub Desktop.
Save neilgee/4d0cd16a007796b0779ff066ee5ea9a2 to your computer and use it in GitHub Desktop.
CSS Arrow Pointer Nodules using before and after pseudo selectors
/* 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