Created
March 7, 2012 00:44
-
-
Save benknight/1990148 to your computer and use it in GitHub Desktop.
Arrow tip button
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
/** | |
* Arrow tip button | |
*/ | |
body { z-index: 0; text-align: center; padding-top: 100px; } | |
button { | |
position: relative; | |
font: 700 20px/1 'Helvetica Neue'; | |
color: white; | |
border: none; | |
border-radius: 5px 0 0 5px; | |
padding: 10px 20px 12px 30px; | |
background: black; | |
box-shadow: 2px 1px 1px red, 1px -1px 1px red, -1px 0 1px red; } | |
button::before { | |
content: ""; | |
transform: rotate(-45deg); | |
position: absolute; | |
background: black; | |
display: block; | |
width: 30px; | |
height: 30px;; | |
top: 6px; | |
right: -16px; | |
box-shadow: 1px 1px 1px red; } |
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
<!-- content to be placed inside <body>…</body> --> | |
<button>Go</button> |
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","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment