Reputation: 41
The problem is that I have multi page google form with each page has different amount of text#. It's to be embedded in long form blog post as a quiz. The problem is that google only provides iFrame code and iframe isn't letting me set flexible height.
I have tried Ben Marshall, I've tried height:100%
in both style header and in the actual iframe and still not.
Ideally I want a way to use a flex box or something around the iframe that it will change height depending on the size of the form. Otherwise is there a way to make the google form the center of the iframe - to divide the extra space up? This is a example google form
<iframe src="https://docs.google.com/forms/d/e/1FAIpQLSf0yROc5FfPcvex7G3e1uPGXo3nmQMk99EKZypuarafcVtwhw/viewform?embedded=true" width="640" height="903" frameborder="0" marginheight="0" marginwidth="0">Loading...</iframe>
I am only familiar with CSS and Html.
Thank you for your time and assistance
Upvotes: 4
Views: 4208
Reputation: 944320
Cross-origin security features in browsers prevent you reading information about the document in the frame (including the rendered height of it) without the explicit co-operation of the site inside the frame.
So you can't do this.
Upvotes: 1