Created
March 19, 2012 18:43
-
-
Save jgillman/2123546 to your computer and use it in GitHub Desktop.
CSS only button arrows
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
/** | |
* CSS only button arrows | |
*/ | |
ul { | |
border: 2px solid red; | |
} | |
ul:after { | |
content: '.'; | |
clear: both; | |
} | |
li { | |
position: relative; | |
float: left; | |
list-style: none; | |
margin: 0 20px | |
} | |
li:before { | |
content: ''; | |
position: absolute; | |
bottom: -20px; | |
left: 10px; | |
border-top: 20px solid red; | |
border-right: 20px solid transparent; | |
border-left: 20px solid transparent; | |
} | |
li:after { | |
content: ''; | |
position: absolute; | |
bottom: -17px; | |
left: 13px; | |
border-top: 17px solid white; | |
border-right: 17px solid transparent; | |
border-left: 17px solid transparent; | |
} |
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
<ul> | |
<li>button 1</li> | |
<li>button 2</li> | |
<li>button 3</li> | |
</ul> |
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
{"view":"split-vertical","seethrough":"","prefixfree":"1","page":"html"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment