![]() |
|
|
|
|
|||||||
| HTML / Design Are you a designer? Or just trying to become one? Great! You'll be able to talk about layouts, and HTML code to help your fellow designers, so everyone can work together to master the tricks of the trade. (Maybe even some JavaScript too!) |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
My website contains a lot of useful text and PDF documents. Using CSS how I could place images as small icons for the types of documents for download arranged on the hosting?
|
|
#2
|
||||
|
||||
|
Add these lines in the CSS file:
Code:
a[href$=".pdf"]
{
background: url(http://path-to/pdf-icon.png) no-repeat scroll left center;
}
a[href$=".txt"]
{
background: url(http://path-to/text-icon.png) no-repeat scroll left center;
}
|
![]() |
| Tags |
| download, hosting, icons, links, placing, types |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|