Hello CSS-ers,
My question is:
Is it possible to use CSS to prevent the 'Gecko-underline' behind
'anchored' images on pages with patterned background images?
The page http://www.vonreeken.demon.nl/test/gifline1.htm
shows, well if a 'Gecko' browser is used of course, that these
browsers let the background of images inherit the text-decoration
attribute of the containing anchor.
Example code:
<a href="dummy.htm" title="A dead link"><b>Photo Album</b><br>
<img src="book.gif" alt="The content"
style="border-style: none; width: 48px; height: 48px;
vertical-align: middle; "></a>
This results in the 'anchor'-underline being visible in the
transparent part of the book.gif image.
I can imagine that this may officially be correct but I like the way
Opera (7.53) and IE (6.0) handle this better (i.e. never show anchor
/text/-attributes under images).
To see the effect and read additional information, please check the
above page mentioned test page. The page has also a link to an example
page with the code stripped to the minimum is.
Thanks in advance,
a3ano