Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Icons based on Document types

Status
Not open for further replies.

jeffsal

Technical User
Oct 29, 2005
24
0
0
US
I'm trying to place an icon to left based on the document extention. I found this but can not get it to work.

/* PDF document links */
a[href$='.pdf'] {
background:transparent url(../images/pdf.png) center left no-repeat;
display:inline-block;
padding-left:20px;
line-height:15px;
}

Thanks
Jeffsal
 
This should work in FF and any other browsers that support these kind of selectors. Those browsers do not include Internet explorer in any of its incarnations.

___________________________________________________________
[small]Do something about world cancer today: PACT[/small]
 
Any options for IE to accomplish this.

Thanks
Jeffsal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top