2 Replies Latest reply on Jan 30, 2018 1:19 AM by Pavel Homeriki

    Making an Iframe html code respond to window size ..

    Chris1020304

      I have a multi breakpoints on the site (960, 1200, 1400) and I have certain sites display in an Iframe on a button click on the site using:

       

      <iframe id="videowindow" name="videowindow" width="1280" height="465" src="https://www.cointelegraph.com" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

       

      this displays fine on breakpoint 1400 with the scrollbar for the site inside the site, but on smaller breakpoints it doesn't shrink, this is probably because I have size : in the HTML, how do I make it so that on different breakpoints the site displayed in the Iframe will match the size of the box I set around it / put it in or fit the main site?

       

      Can anyone help with how?

       

      Thanks