For some reason, my post on the subject has been removed. Someone may have mistakenly thought that my post was a duplicate of his/her post. But that's not true. I not only pointed out, like Beverleyh did in #4, that the height should be adapted in
Code:
animatedcollapse.addDiv('jason', 'fade=1,height=80px')
but also that there's a huge difference between what soflatechguy has:
Code:
<div id="jason" width: 500px height:400px style="background: #FFFFCC; display:none">
<b>Content inside DIV!</b><br />
<iframe width="420" height="315" src="https://www.youtube.com/embed/bwuWFPh4ka4" frameborder="0" allowfullscreen></iframe>
<b>Note: Fade effect enabled. Height programmically defined. DIV hidden using inline CSS.</b><br />
</div>
and what he should have written:
Code:
<div id="jason" style="width: 500px; background: #FFFFCC; display:none">
<b>Content inside DIV!</b><br />
<iframe style="width: 100%; height: 100%" src="https://www.youtube.com/embed/bwuWFPh4ka4" frameborder="0" allowfullscreen></iframe>
<b>Note: Fade effect enabled. Height programmically defined. DIV hidden using inline CSS.</b><br />
</div>
These lines solve the problem of the div not being pushed down and are not the duplicate of any post.
Bookmarks