Created
September 26, 2016 20:43
-
-
Save Lego2012/83936731e40cfc1a03f08a7536b94eae to your computer and use it in GitHub Desktop.
Style Links depending on Format
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
/* external links */ | |
a[href^="http://"] { | |
padding-right: 20px; | |
background: url(external.gif) no-repeat center right; | |
} | |
/* emails */ | |
a[href^="mailto:"] { | |
padding-right: 20px; | |
background: url(email.png) no-repeat center right; | |
} | |
/* pdfs */ | |
a[href$=".pdf"] { | |
padding-right: 20px; | |
background: url(pdf.png) no-repeat center right; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment