Re: Question about the Adjacent sibling combinator

* Barry Rader wrote:
>I have been trying to figure out the expected behaviour of this combinator.
>h3 + ul{}
>Would this mean that the style defined here would affect the ul, the h3 
>or some kind of combination of both.

This is defined in <>. At the moment
the subject of a selector is always the one at the end, so this would
select only 'ul' elements.

>If it is the behaviour to affect the ul only is there any way to have a 
>reverse combinator that will affect the h3?

Currently there is no such feature. You can search the list archive for
some of the proposals that have been made to support this. Old drafts of
CSS3 Selectors has a :subject pseudo-class. None of the methods is in
any current draft.
Björn Höhrmann · ·
Weinh. Str. 22 · Telefon: +49(0)621/4309674 ·
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · 

Received on Friday, 23 November 2007 12:53:28 UTC