A Geek’s Life

Slight difficulties

by admin on Nov.11, 2008, under Uncategorized

So I’ve noticed these external link icons cropping up a lot, such as on Wikipedia, and I thought it would be a good thing to put onto the new KLA site.  So here’s the CSS code I’m using to do that:

a[href^="http:"] {
background: url(../images/externalLink.png) no-repeat right top;
padding-right: 10px;
}

a[href^="http://www.kenlongassoc.com"], a[href^="http://kenlongassoc.com"] {
background-image:none;
padding-right:0;
}

The first bit puts in the icon, and of course the second bit keeps it from showing up on internal links, cause that would be stupid.  The problem that I’m noticing, is the icon also shows up next to images that are linked, and I’m not sure how to prevent that.  It looks bad when next to images, and also moves around my Flickr feed, and that’s just no good.  I’m sure I’m just missing something that should be completely obvious, but I need some help on this.  So here is my cry for help.


4 Comments for this entry

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!