Last Updated: February 25, 2016
·
277
· pb

Style Links Depending On What They Are Linking To

a[rel="external"]{
  // external links
}

a[href^="mailto:"]{
  // email links
}

a[href$=".pdf"]{
  // PDF links
}

a[href$=".zip"]{
  // ZIP links
}