a[href$=".pdf"] {
background: url(../images/layout/pdf.gif) no-repeat right top;
padding-right: 20px;
}
How should I modify this to use an icon font if this is the css for inserting it as a class:
.icon-file-pdf:before {
content: "\e002";
}
a[href$=".pdf"]:before {
content: "\e002";
font-family: 'name-of-icon-font';
padding-right: 0.3em;
}