On 5/17/05, Paul Novitski <[EMAIL PROTECTED]> wrote:
> At 04:15 PM 5/17/2005, Visconte, Marc (Contractor) wrote:
> >Short version:  IS there a Selector construction that would allow me to
> >affect a parent element based upon a contained (child) element?  I want to
> >DISPLAY:NONE for a whole table row <TR>, if any of the cells have the STRIKE
> >tag internally.  I want to affect the PARENT of the child, not the other way
> >around.
> 
> Short answer: no.
> 
> As far as I know, you can't do this today with CSS.
> 
> You could do it easily with javascript, however, but of course you'd have
> to be able to add a <script> tag to the header or some code to an existing
> script file.
> 

It's even easier than that. Browsers *will* let you put script inside the body.

Also, you could use the GreaseMonkey extension to FireFox to have a
user script which runs on a certain page.

Or, if you like other browsers you can use Proxomitron to alter the
page and put in your user script.

Any way you do it, you basically:
Get all strike tags
For each strike tag
  Go up to parent until you find a TR
  Hide the TR

It's *real* easy.

-- 
Justin Patrin
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
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/

Reply via email to