0

I have a popup which contains the facebook iframe and its seems like the inline stylesheet method in not work

<div data-html="allow" >
<iframe style="border: 0px;  display: block" height="400" class="spoooky-auth" src="https://api.spooo.ky/auth/facebook" border="0"></iframe>
</div>

I am trying to increase the width and height of the iframe but its not work.any clue?

Any help is appreciated. thanks,

1 Answers1

0

I'd use JS for this, like so:

<div data-html="allow" >
<iframe id="iframe1" style="border: 0px;  display: block" height="400" class="spoooky-auth" src="https://api.spooo.ky/auth/facebook" border="0"></iframe>
</div>

<script type="application/javascript">

function resizeIframe {

    iframe.width  = iframe.contentWindow.document.body.scrollWidth;
    iframe.height = iframe.contentWindow.document.body.scrollHeight;
}

window.addEventListener('DOMContentLoaded', function(e) {

    var iframe = document.getElementById( 'iframe1' );
    resizeIframe;

} );

</script>
billy.farroll
  • 1,903
  • 2
  • 15
  • 23