I know that you would like to avoid this, but it really should not bother you so much that it will be a burden on your site. I did much crazier things with jquery and he treated it like a champion. When you say βdynamicβ, this is usually a safe bet that you will need to touch some javascript at some point: P
$(selector)[0].scrollHeight
How to make it dynamic? You can adjust the interval to adjust the height.
Something like that:
function setHeight(selector){ var contentHeight = $(selector)[0].scrollHeight; $('#iframe-id').attr('height', contentHeight); }
Then you either upload it to the page load, or transfer it to setInterval.
If this is just a jquery thing and you are not against javascript, then this site can help you http://www.mattcutts.com/blog/iframe-height-scrollbar-example/
source share