javascript

Rails/jQuery magic: marking external links with a CSS class

Tagged:  •    •    •  

Want to mark external links on your website with a little icon or a different colour? Well, you'll want to give all those <a> tags a CSS class, and style them up accordingly. In this article I present an easy way to do this without directly altering all the links in your application, exactly as I implemented it on this popular celebrity charity news site.

Syndicate content