On Mon, 10 Jan 2005 09:14:31 +1100, Virginia Murdoch
[EMAIL-REMOVED]> wrote:
[...]
>
> usually, I add this rule to stop it affecting images that are also
> links:
>
> img a {
> border: none;
> }
>
> but in this case it's not working. my html is
>
> <p class="bolt"><a href="/article/1/first-post"><img
> src="images/bolt.gif" width="35" alt="A bolt" /></a></p>
>
> what am i doing wrong? i have the img a {} rule at the end of my
> stylesheet. sorry i can't provide a link to the actual work - it's
> under NDA.
img a { } would affect all "a" elements inside "img" elements...
you should have written:
a img { border: none; }
--
pawel
> cheers,
> virginia
>
> ______________________________________________________________________
> css-discuss [EMAIL-REMOVED]]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
>
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/