Skip to content

Instantly share code, notes, and snippets.

@jgillman
Created March 19, 2012 18:43
Show Gist options
  • Save jgillman/2123546 to your computer and use it in GitHub Desktop.
Save jgillman/2123546 to your computer and use it in GitHub Desktop.
CSS only button arrows
/**
* 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;
}
<ul>
<li>button 1</li>
<li>button 2</li>
<li>button 3</li>
</ul>
{"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