I was looking for the same effect, and I found a way. If you look with the explore item in Chrome (or firebug) in the metrics section, select <html> . You should see if the html area is smaller than the entire document. If you install html at a height of: 300%, it should work. Here are the important features:
html {height:300%; } body {height:100%; } #frame {height:90.74074074074074%;}
*** watch out for any maximum height that you could encode, it will blame the effect up.
In my case, I had to split the frame height with another element in my container so that it could stretch completely without the appearance of scroll bars. So I had to calculate the% of height remaining in my container using firebug.
------- Another way is easier:
Do not try to specify a height for your HTML documents,
html, body {}
then only the code:
#some-div {height:100%;} #iframe {height:300%;}
Note: div should be your main section.
This should relatively work. iframe accurately calculates 300% of the visible window height. If your html content from the second document (in the iframe) is less in height than 3 times your browser height, it works. If you donβt need to often add content to this document, this is a permanent solution, and you can simply find your own%, which is necessary for the height of your content.
source share