Previous Message
Next Message

descendant selectors

Sent by Donna Jones on 16 March 2007 19:07


Hi John:

> I would have guessed this is the way to go about it.  Maybe you can give
> the  <a> a class and then assign it a background-image ?  Although, I'm not
> sure that's the best route.

you know what, i shouldn't have written the question to begin with, just 
moving too fast (or faster than my brain or something like that).

i had "commented out" some of the css, made a separate page and that's 
why i wasn't seeing it in IE7 and 6!

so .... you're right, it was right to begin with.

cheers
Donna

> 
> On 3/16/07, Donna Jones [EMAIL-REMOVED]> wrote:
> 
>>hi all, i, and a couple of friends, are trying to figure out a
>>"descentant selector" issue.
>>
>>say you have this in the css:
>>
>>#content li a img {border: 2px solid green;}
>>
>>your html is
>>....
>><li><a href="fake.html"><img src="image.jpg">some words</a></li>
>>....
>>
>>with Firefox the image is styled.  With IE7 or 6 it is not.  I am leary
>>about the "logic" and it doesn't seem to me like "a" should be able to
>>have a "img" child in that context BUT firefox is reading it, so makes
>>me wonder.  But, then why is IE not reading it.  I wouldn't think it
>>would be "too advanced" for IE.
>>
>>thanks very much,
>>Donna
>>
>>
>>
>>--
>>Donna Jones
>>Portland, Maine
>>207 772 0266
>>www.westendwebs.com
>>
>>i'm participating in ShutdownDay on March 24, Saturday,
>>http://shutdownday.org/
>>______________________________________________________________________
>>css-discuss [EMAIL-REMOVED]]
>>http://www.css-discuss.org/mailman/listinfo/css-d
>>IE7 information -- http://css-discuss.incutio.com/?page=IE7
>>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
> IE7 information -- http://css-discuss.incutio.com/?page=IE7
> List wiki/FAQ -- http://css-discuss.incutio.com/
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
> 
> 

-- 
Donna Jones
Portland, Maine
207 772 0266
www.westendwebs.com

i'm participating in ShutdownDay on March 24, Saturday, 
http://shutdownday.org/
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: