While browsing at Forrst I saw this nice piece of CSS.

a[href^="http://"] {
        color: blue;
}
 
a[href^="mailto:"] {
        color: red;
}
 
a[href$=".pdf"] {
        color: green;
}

Styling links depending on their formats.

ajcates said:
For the sake of usability and consistency instead of changing the color on links based on their format I often times use this technique instead to add on little file icons.

© 2011 Joshua Lückers Suffusion theme by Sayontan Sinha