Further to my last post, I find that the collapser example I gave works OK.
The problem I have occurs because some of the blocks I want to collapse contain either nothing, or only empty elements. My css for these empty elements (which are always empty) contained no selector for the element body (since it's empty) and this gives rise to the trouble. This gives rise to another question which is probably realy trivial. How do I suppress the gray block which appears when an element is empty? I have an element:before section which displays some attributes, but when the element is empty (very common) I get a large gray block below which I cannot get rid of. Philip Nye

