Skip to content

Instantly share code, notes, and snippets.

@siongui
Created November 29, 2013 13:28

Revisions

  1. siongui created this gist Nov 29, 2013.
    9 changes: 9 additions & 0 deletions filetype.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    a[href$=".pdf"] {
    background: url(../img/pdf_icon_16x16.png) no-repeat;
    padding-left: 20px;
    }

    ...or if you don't want to use an icon, but do want to let your users know you're linking to a file:
    a[href$=".pdf"]:after {
    content: " (PDF)"
    }