But that affects p tags that fall AFTER h2's, not before, no? ------------------
On 8/30/10 at 12:37 PM +0100, MEM wrote in a message entitled "Re: [css-d] Adjacent Sibling Selectors in Reverse?": >2010/8/30 Rick Gordon <li...@rickgordon.com> >> >> Is there some way to address the first member of an adjacent sibling >> selector, as opposed to the last member? >> >> For example, if I wanted to address p tags immediately preceding an h2, how >> might I go about it? Thanks. > >Something like this perhaps? >h2+p { > >} > >http://www.w3.org/TR/CSS2/selector.html#adjacent-selectors > -- ___________________________________________________ RICK GORDON EMERALD VALLEY GRAPHICS AND CONSULTING ___________________________________________________ WWW: http://www.shelterpub.com ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] 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/