Re: Nested and non-nested elements: pseudoclasses

> Logically speaking, there should be a way to target an element 
> *anywhere* on a page using CSS psuedoclasses, such as
> 
> [snip]
> 
> Why is it that this is not possible?

The above example should work actually. (Maybe the browser didn't render
the incorrect markup as intended and screwed up the DOM therefore.)


> As I understand it, CSS is supposed to be a cross-platform, 
> accessible replacement to JavaScript and DHTML.  Yet, simple tasks as
> this are not possible as they should be.

CSS is part of DHTML.


> *However*, it is possible to apply the same logic to nested elements,
> but it still requires a fair amount of CSS.

I don't understand.


-- 
  Anne van Kesteren
  <http://annevankesteren.nl/>

Received on Thursday, 19 August 2004 06:34:41 UTC