Created
September 5, 2011 23:20
-
-
Save paularmstrong/1196150 to your computer and use it in GitHub Desktop.
CSS3 Attribute Selectors Are Awesome
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[href*="twitter.com"], | |
a[href*="github.com"], | |
a[href*="dribbble.com"], | |
a[href*="linkedin.com"] { | |
background-image: url(images/icons.png); | |
background-position: 2px 2px; | |
background-repeat: no-repeat; | |
padding-left: 20px; | |
} | |
a[href*="github.com"] { background-position: 2px -23px; } | |
a[href*="dribbble.com"] { background-position: 2px -48px; } | |
a[href*="linkedin.com"] { background-position: 2px -73px; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fuck, never thought of this, how can i don`t think about it.