Why doesn’t my code for responsive Google Forms iFrame work on all devices?
-
Hi,
I’ve made the iframe for our Google Form on a WordPress website responsive and it does work on some devices using certain browsers, but not everywhere:
– Windows Firefox: works
– Windows Chrome: doesn’t work
– iPhone Safari & Chrome: works
– Android Firefox & Chrome: doesn’t workUsing the newest browser versions by the way.
Here’s the code that I used:`<div class=”resp-container-1″>
<iframe class=”resp-iframe-1″ src=”XXX” width=”100%” height=”100%” allowfullscreen=”” frameborder=”0″>Wird geladen…</iframe>
</div>`and
`.resp-container-1 {
position: relative;
overflow: hidden;
padding-top: 75%;
}.resp-iframe-1 {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}`Please find screenshots below.
I’ve checked, double-checked and fiddled around with it, but I can’t figure out how to tweak the code. What am I doing wrong?
Any help would be greatly appreciated!
Thanks,
VictoriaWindows Firefox:
https://i.stack.imgur.com/kVtUV.jpgWindows Chrome
https://i.stack.imgur.com/HaOmT.jpgiPhone Safari
https://i.stack.imgur.com/X0IMj.jpgAndroid Firefox
https://i.stack.imgur.com/sc15U.png
The topic ‘Why doesn’t my code for responsive Google Forms iFrame work on all devices?’ is closed to new replies.