On Mar 26, 2009, at 10:06 AM, Mauricio ((Maujor)) Samy Silva wrote:
>> I'm just curious, is there a css3 selector for previous siblings?
>> And if
>> there is, how widely supported is it?
> ----------------------------------------------------------------------
> -----------------------------------------
> Yes! There is.
>
> Sintax is:
> ul ~ p {...} matches p elements that comes before ul elements.
I don't believe that this is correct. This would match a p element
that comes AFTER (though not necessarily immediately after) the list
element.
See:
http://www.w3.org/TR/css3-selectors/#general-sibling-combinators
----
Michael Stewart
[email protected]
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/