a.attachment {
    display: inline-block;
    background-image: url('icons/___.png');
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 40px;
    height: 36px;
    line-height: 36px;
}

a.attachment.no-title {
    /* Hide the text. */
    font-size: 0;
    vertical-align: middle;
    padding-left: 0px;
    width: 30px;
    overflow: hidden;
    margin-right: 10px;
}

a.attachment.no-title.left-space {
   margin-left: 40px;
}

a.attachment.no-title.right-space {
   margin-right: 50px;
}

a.attachment[target$='_blank']{
    background-image: url('icons/_www_.png');
}

a.attachment[href$='.avi']{
    background-image: url('icons/avi.png');
}

a.attachment[href$='.css']{
    background-image: url('icons/css.png');
}

a.attachment[href$='.dll']{
    background-image: url('icons/dll.png');
}

a.attachment[href$='.doc']{
    background-image: url('icons/doc.png');
}

a.attachment[href$='.docx']{
    background-image: url('icons/docx.png');
}

a.attachment[href$='.eps']{
    background-image: url('icons/eps.png');
}

a.attachment[href$='.htm']{
    background-image: url('icons/htm.png');
}

a.attachment[href$='.jpg']{
    background-image: url('icons/jpg.png');
}

a.attachment[href$='.mov']{
    background-image: url('icons/mov.png');
}

a.attachment[href$='.m4a']{
    background-image: url('icons/m4a.png');
}

a.attachment[href$='.mp3']{
    background-image: url('icons/mp3.png');
}

a.attachment[href$='.mpg']{
    background-image: url('icons/mpg.png');
}

a.attachment[href$='.odp']{
    background-image: url('icons/odp.png');
}

a.attachment[href$='.ods']{
    background-image: url('icons/ods.png');
}

a.attachment[href$='.odt']{
    background-image: url('icons/odt.png');
}

a.attachment[href$='.pdf']{
    background-image: url('icons/pdf.png');
}

a.attachment[href$='.png']{
    background-image: url('icons/png.png');
}

a.attachment[href$='.ppt']{
    background-image: url('icons/ppt.png');
}

a.attachment[href$='.pptx']{
    background-image: url('icons/pptx.png');
}

a.attachment[href$='.psd']{
    background-image: url('icons/psd.png');
}

a.attachment[href$='.pub']{
    background-image: url('icons/pub.png');
}

a.attachment[href$='.txt']{
    background-image: url('icons/txt.png');
}

a.attachment[href$='.wav']{
    background-image: url('icons/wav.png');
}

a.attachment[href$='.wma']{
    background-image: url('icons/wma.png');
}

a.attachment[href$='.xls']{
    background-image: url('icons/xls.png');
}

a.attachment[href$='.xlsx']{
    background-image: url('icons/xlsx.png');
}

a.attachment[href$='.zip']{
    background-image: url('icons/zip.png');
}