Philip Nye wrote: > 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.
Your troubles probably come from this documented limitation: "A block, marked as being collapsible, can be collapsed only if it contains other blocks." Empty elements which are not styled in the CSS are rendered as *invisible inlines*. * This, because "inline" (and not "none") is the default value for property "display". * They are invisible because they contain nothing which could be displayed. > 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. No, the answer is not trivial. An empty element with display:block; is always represented by a ``gray block''. There is currently no way to change this.

