On 18/07/11 12:39 PM, Chris G wrote:
It's the last bit that's difficult as the paragraph by default has a space under it. It's not easy to add a class/id to the paragraph and anyway that seems to be a rather inelegant solution. What I want is a way to say that I *never* want a big margin when there's a UL under a P.
Hi Chris, Your example rendered in unstyled HTML looks "correct" to my eye, despite the whitespace between the heading/paragraph and list. I wouldn't diverge too far from that layout unless there's a compelling reason. If you want to more obviously delineate sections I suggest containing each in a <div>, using a styled <hr> at the end of each, and/or increasing the left margin of <p>. Of course there are other hacks like setting a negative top margin on <ul> or using Javascript to traverse the DOM.. :o Cheers, Rob. -- Robert Waldie | VP Business Development UK & Europe | Opengear robert.waldie@opengear.com | +44 (0)7766 866159 | http://opengear.com/uk Opengear Ltd. Herschel House, 58 Herschel St, Slough, Berkshire, England, SL1 1PG Registered in England, No. 07413660