|
I used this method on a site, but I ran into a snag. This also underlines images that are linked.
at first I tried this:
a img, a:link img {
border:0;
}
But that does not work because the underline is happening to the "a:link" not the image inside the link. I came up with a good temporary solution:
a img, a:link img {
border:0;
margin-bottom:-4px; /* this hides the 1px border under a:link */
}
This would obviously not work on an icon with a transparent background. Currently there aren't any images on the site with transparent backgrounds, but I still feel that this is a hack and not a real solution to the problem.
Is there a selector that will just target the text inside the link? (to apply the underline)
Please don't give suggestions like "wrap all of your text links in a span tag or a div tag." The site is several hundred pages deep and the client controls the site with a CMS.
Thanks for your help!
Last edited by danfinney; 09-09-2007 at 08:13 AM..
|