Skip to content

Instantly share code, notes, and snippets.

@aroc
Created July 10, 2013 21:40
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 aroc/5970578 to your computer and use it in GitHub Desktop.
Save aroc/5970578 to your computer and use it in GitHub Desktop.
Create an border arrow in css. Great for activity feeds and such.
.arrow {
position: absolute;
top: 15px;
left: -11px;
z-index: 100;
.back {
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
border-top: 10px solid rgba(0, 0, 0, 0);
border-bottom: 10px solid rgba(0, 0, 0, 0);
border-right: 10px solid #DDD;
}
.front {
position: absolute;
top: 2px;
left: 3px;
width: 0;
height: 0;
border-top: 8px solid rgba(0, 0, 0, 0);
border-bottom: 8px solid rgba(0, 0, 0, 0);
border-right: 8px solid #FFF;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment