> What about doing it backwards then put a class on the <p> and target the > following <ul>
What I'm going for is to take the bottom margin off of a paragraph preceding a list. I don't need the list to be styled any differently, so there's no reason to target it at all. Here's a list: * Something * Something else Instead of: Here's a list: *something *something else So targeting the ul doesn't make much sense. What I've got now is a "list_header" class that goes on all the p elements that are really list headers. But I thought it would be cool if I didn't need the class, and could just say "any paragraph before a list is a list header" instead. ______________________________________________________________________ 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/