info To participate please Register or Login.

Attach icons to anything with CSS

By Simon on November 11th, 2007. Published in CSS.

AsktheCSSguy.com and Hunlock.com shows you how to add small icons next to your links that will show where that link will take you. Everything is managed by your CSS file and it’s pretty nifty!

a[href $='.pdf'] {
padding-right: 18px;
background: transparent url(icon_pdf.gif) no-repeat center right;
}

No Responses

Express yourself. Tell us your opinion. Make a comment!

No comments or trackbacks yet.

Write your comment

Warning Spam and inflammatory comments will be deleted. If this is the first time you make a comment on Easy Webbers it will be held for moderation before being published.