PDF and External Link icon


/ Published in: CSS
Save to your folder(s)



Copy this code and paste it in your HTML
  1. a[href$=".pdf"] {
  2. background: url(location_of_pdf_icon.png) no-repeat;
  3. padding-left: 10px;
  4. }
  5.  
  6. a[href^="http"] {
  7. background: url(location_of_external_icon.png) no-repeat;
  8. padding-left: 10px;
  9. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.