I need a solution for auto-adjusting the width
and height
of an iframe
to barely fit its content. The point is that t
If the iframe content is from the same domain this should work great. It does require jQuery though.
$('#iframe_id').load(function () {
$(this).height($(this).contents().height());
$(this).width($(this).contents().width());
});
To have it resize dynamically you could do this:
Then on the page that the iframe loads add this: