iframe responsive

Q&A about the latest versions
Post Reply
Lou
Posts: 31
Joined: Wed Oct 04, 2017 4:54 pm

iframe responsive

Post by Lou » Mon Jan 21, 2019 4:59 pm

Hi Hopki,

I'm using the below iframe (with my own pano link) on wordpress:

<iframe src="pano.html" name="panorama" width="640" height="480" scrolling="no" marginheight="0" marginwidth="0" frameborder="0" style="float:left; margin-left:0px" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>

Is there a way to make the iframe responsive, as I can only see the desktop size on mobile/ipad devices?

Thanks,
Lou :)

User avatar
Hopki
Gnome
Posts: 8920
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: iframe responsive

Post by Hopki » Tue Jan 22, 2019 5:10 pm

Hi,
Try replacing:

Code: Select all

width="640" height="480"
with

Code: Select all

width="100%" height="100%"
.
Regards,
Hopki

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 18 guests