iframe scrolling in html5?
Posted on 2012-03-19
I want to include a page from another website in a page on my site. But, the page that I want to include will probably not be the same size (or even fit completely in) the iframe container that I wanted to use (especially if the web page containing the iframe has been resized to be even smaller).
I am new to web coding, but I have seen that there may be an issue with scrolling in an iframe when using HTML5. I have seen sites saying that this s broken, but nothing that gives coded examples of howto work around the issue.
If the page that I want to embed is larger than the area of the iframe, what is the best way to embed the other site's webpage in my page using HTML5 and CSS3 (jQuery and PHP 5 will also be used - just in case that makes any difference).
I do have access to the site code for the site page that I will be embedding. Should I just code the originating page to read the size of its container and refresh accordingly? If so, do you have any code samples of how this is done?