Created
May 14, 2012 13:32
-
-
Save benshimmin/2694012 to your computer and use it in GitHub Desktop.
How to turn a regular anchor into a WebKit button
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
// Assuming you have markup like: | |
// | |
// <a class="stupid-button" href="#">I'm a fake button</a> | |
// | |
// ...you can use the following CSS to make it look like a regular WebKit button. Probably. | |
a.stupid-button | |
color : black | |
text-decoration : none | |
padding : 2px 6px | |
cursor : default | |
font : -webkit-small-control | |
-webkit-appearance : button | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment