> you could achieve the same thing (for the example you give) using > CSS2.1 adjacent-sibling selectors [1]:
> p + ul { > font-style: italic; > } >From the spec: > Adjacent sibling selectors have the following syntax: E1 + E2, where E2 is > the subject of the selector. The selector matches if E1 and E2 share the same > parent in the document tree and E1 immediately precedes E2, ignoring > non-element nodes (such as text nodes and comments). <p>These are the things you need to bring:</p> <ul> <li>Bananas</li> <li>Pie</li> </ul> Unless I'm misreading the spec, that would match the <ul> and make my list text italicized, which isn't what I want. I want to match the <p>. Something like E1 + E2, where E1 is the subject of the selector. ---Tim ______________________________________________________________________ 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/