Skip to content

Instantly share code, notes, and snippets.

@benshimmin
Created May 14, 2012 13:32
Show Gist options
  • Save benshimmin/2694012 to your computer and use it in GitHub Desktop.
Save benshimmin/2694012 to your computer and use it in GitHub Desktop.
How to turn a regular anchor into a WebKit button
// 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