Created
September 15, 2011 20:21
-
-
Save douglasback/1220359 to your computer and use it in GitHub Desktop.
Generate arrows for links using nothing but CSS (Webkit, FF, IE8+)
This file contains hidden or 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
[your element selector] { | |
display: inline-block; | |
position: relative; | |
} | |
[your element selector]:after { | |
content: ""; | |
display: inline-block; | |
width: 0; | |
height: 0; | |
position: relative; | |
top: -2px; | |
margin: 0 0 0 10px; | |
border-left: 4px solid #000; | |
border-top: 4px solid transparent; | |
border-bottom: 4px solid transparent; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment