Ashley Cameron Design

Ashley Cameron Design

Shop the Creative Design Market

Good morning

Style links depending on file format

CSSSnippets

About a 1 minute read

"I am always doing what I cannot do yet, in order to learn how to do it."

Vincent Van Gogh


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;
    }