Blog

CSS – Add icons to links

Posted On:

/* All Links */
 a[href $='.pdf'] { 
   padding-right: 18px;
   background: transparent url(icon_pdf.gif) no-repeat center right;
}

/* Specific Links */

.customPage li a[href $='.pdf'] { 
   margin: 3px 0px 3px -10px;
   background: transparent url(../templateimages/rebrand/pdf_icon.gif) no-repeat center left;
   
}

Comments