Ashley Cameron Design

Ashley Cameron Design

Shop the Creative Design Market

Goodnight

Style links depending on file format

CSSSnippets

About a 1 minute read

"Life is like riding a bicycle. To keep your balance, you must keep moving."

Albert Einstein


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* 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;
    }