Sent by Jukka K. Korpela on 29 November 2003 09:09
On Sat, 29 Nov 2003, Mario Ruggier wrote:
> I have stumbled on the same need described in (to select an element
> depending on what children are present):
- -
> The single reply to that was that is is not currently possible.
> Is this still the answer to this?
Yes. No new CSS specification has been issued - and even if a new
specification with new selector types were issued now, it would take many
years before we could use them, if we extrapolate from the
past of CSS implementation.
> Are there any known workarounds?
Take a different approach. There's always the clumsy approach of using
(lots of) class attributes, but maybe there's a better way.
> My specific case at the moment is that in a nested list, I'd
> like to style an LI differently if it contains a UL element.
Depending on the structure of the markup as well as the desired styling,
you might or might not be able to do that without resorting to mere
classes. Maybe it would suffice to style the inner UL elements (e.g. as
regards to margins), which can be referred to using normal contextual
selectors.
--
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/