I’ve got the following in my .css file creating a little image next to each link on my site:
div.post .text a[href^='http:'] { background: url(../../pics/remote.gif) right top no-repeat; padding-right: 10px; white-space: nowrap; }
How do I modify this snippet (or add something new) to exclude the link icon next to images that are links themselves?
If you set the background color and have a negative right margin on the image, the image will cover the external link image.
Example:
edit: If you’ve got a patterned background this isn’t going to look great for images that have transparency. Also, your
href^=selector won’t work on IE7 but you probably knew that already