Skip to content

Instantly share code, notes, and snippets.

@dentedtriangle
Created May 10, 2012 03:30
Show Gist options
  • Save dentedtriangle/2650863 to your computer and use it in GitHub Desktop.
Save dentedtriangle/2650863 to your computer and use it in GitHub Desktop.
CSS Arrow
.arrow_box {
position: relative;
background: #000;
}
.arrow_box:after {
bottom: 100%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
.arrow_box:after {
border-bottom-color: #000;
border-width: 30px; /* change width based off what object is */
left: 50%;
margin-left: -30px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment