Previous Message
Next Message

Re: [css-d] Turn of bgcolor for links wich contain an image

Sent by Lonnie Kraemer on 29 January 2003 01:01


> >> a:hover:ifcontains(img) {backgroundcolor: transparent}
>
> > If I understand you correctly, you are very close:
> > a:hover img {backround:transparent;}
>
> This turns off the bgcolor of the _img_ element. I need to turn of the
> bgcolor for the _a_ element _if_ it contains an img element :) I think
this
> is not possible in CSS2 (am I wrong?)

Then, yes, I misunderstood. You are correct in that there are no
ascendant selectors in CSS2. You will have to use class/id.
Previous Message
Next Message

Possibly related: