Created
October 21, 2011 16:41
-
-
Save paularmstrong/1304293 to your computer and use it in GitHub Desktop.
Create a larger hit area for links with a nicely sized background color hover state that doesn't throw off the inline layout of your text.
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
a { | |
padding: 2px 2px 0; | |
margin: -2px -2px 0; | |
-webkit-border-radius: 3px; | |
-moz-border-radius: 3px; | |
-ms-border-radius: 3px; | |
-o-border-radius: 3px; | |
border-radius: 3px; | |
color: #3A57AB; | |
} | |
a:hover { | |
background-color: #3A57AB; | |
color: #EEE; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment