xBlog: The visual thinking weblog

Filed in: CSS, Usability, Web design

13th April 2007

Attach icons to anything with CSS

“Thanks to CSS selectors it’s possible to attach icons to anything you want just by adding an attribute of your choosing to your HTML. Want a popup icon? try <a href=’#’ icon=’popup’> how about a magnifier? <a href=’#’ icon=’mag’>. You can even add them automatically for file types. Here’s how.”

Comments are closed.