Page 1 of 1

Any tip to adjust the height of iframe?

Posted: Mon Nov 16, 2020 1:07 pm
Hello experts,

I am trying to embed an iframe to my booking page.
As the height of iframe varies to what the query returns, it is not realistic to specify the static value for iframe height.

Is there any solution to adjust & resize the height to the content length?

Regards,
Mayumi

Re: Any tip to adjust the height of iframe?

Posted: Wed Nov 18, 2020 8:18 am
by benidormsky

Re: Any tip to adjust the height of iframe?

Posted: Mon Nov 30, 2020 2:48 am
Thanks benidormsky for the info.

As my CMS doesn't allow placing additional .js file in the system, I put this alternatively.
<script type="text/javascript" src="https://beds24.com/include/iframeresize ... "></script> <script type="text/javascript">iFrameResize();</script>
and unfortunately, this didn't work for me :(

Removing "height" parameter resulted in the short iframe like this. https://fida-staging.work/guesthouse/book-iframe/