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.
javascript
Rails/jQuery magic: marking external links with a CSS class
By Steve Purcell - Posted on April 6th, 2008


Recent comments
16 hours 8 min ago
23 hours 6 min ago
1 day 4 hours ago
2 weeks 6 days ago
5 weeks 22 hours ago
5 weeks 22 hours ago
7 weeks 2 days ago
7 weeks 2 days ago
9 weeks 3 days ago
11 weeks 5 days ago