Created
March 7, 2012 03:45
-
-
Save hsquareweb/1990811 to your computer and use it in GitHub Desktop.
CSS: Attribute Substring Selectors
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
a[href$='.pdf'], a[href$='.PDF'] { | |
padding-left:20px; | |
background:transparent url(../img/pdf_icon.png) center left no-repeat; | |
} | |
a[href$='.doc'], a[href$='.rtf'], a[href$='.txt'], a[href$='.wps'] { | |
padding-left: 20px; | |
background: transparent url(../img/doc_icon.png) center left no-repeat; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment