[thelist] Odd CSS selection loophole ...

M. Seyon evoltlist at delime.com
Wed Mar 16 22:20:31 CST 2005


Message from e-head (3/16/2005 11:51 PM)
>On 03/16/05 19:18 or thereabouts, M. Seyon scribbled:
> > Message from e-head (3/16/2005 03:00 PM)
> >
> > >I think I found a weird "selection" loophole in css.
> > >
> > >Logically, I need "all *anchor* tags that have a *img* tag as a child"
> > >... i.e.  <a href=""><img src=""/></a>
> > >
> > >I need to apply styles to *a* tags with this nesting structure.
> > >
> > >via css .... one can select only tags "with certain parents" ... but not
> > >only tags "having certain children" it would seem.
> >
> > May I ask what you want to do that requires this? Maybe there's another 
> way
> > to accomplish what you want.
> >
>
>Ohh, it can definetly be done using another method ... right now I have a
>class that I add all <a> tags too that fit this criteria (have a child
><img> element).

This doesn't really say *what you want to do*. It's never nice to gripe and 
moan about something not working the way you want and then be cryptic about 
what you wanted it to do in the first place.

regards.
-marc

--
Trinidad Carnival in all its photographic glory. Playyuhself.com
http://www.playyuhself.com/


More information about the thelist mailing list