You could assign the contents you're expanding/ contracting a CSS position of absolute, so they do not push down the rest of the page themselves. Then, manually add line breaks on the page based on how how you wish the gap to be:
Code:
<p><b>Example 1 (individual):</b></p>
<a href="javascript:animatedcollapse.toggle('jason')"><img src="http://i25.tinypic.com/wa0img.jpg" border="0" /></a> <a href="javascript:animatedcollapse.show('jason')">Slide Down</a> || <a href="javascript:animatedcollapse.hide('jason')">Slide Up</a>
<div id="jason" style="width: 300px; background: #FFFFCC; display:none; position: absolute;">
<b>Content inside DIV!</b><br />
<b>Note: Fade effect enabled. Height programmically defined. DIV hidden using inline CSS.</b><br />
</div>
<br />
<br />
<p>Rest of page here</p>
Bookmarks