Mon, 07 May 2007
CSS icons, site work todo…. // at 09:57
From http://www.hunlock.com/blogs/Attach_icons_to_anything_with_CSS
A few days ago, while using stumble-upon, I stumbled on a site which showed how to conditionally append icons to the end of hypertext links using css. What made the article interesting was that it used CSS conditionally. For instance...
a[href $='.pdf'] {
padding-right: 18px;
background: transparent url(icon_pdf.gif) no-repeat center right;
}
