I need a solution for auto-adjusting the width and height of an iframe to barely fit its content. The point is that t
width
height
iframe
Javascript to be placed in header:
function resizeIframe(obj) { obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px'; }
Here goes iframe html code:
Css stylesheet
>
.spec_iframe { width: 100%; overflow: hidden; }