ikandee — 2013-05-08T00:11:34-04:00 — #1
Just a quick question - I have a couple of different iFrames (containing external content) within a responsive layout and am wondering how do I get around the problem of the iFrame not scrolling/interacting in the mobile/tablet breakpoint?
paulob — 2013-05-08T16:44:18-04:00 — #2
If you mean the actual content inside the iframe then you can't change that content as it doesn't belong to you
The only way to change the style of the html in an iframe is by adjusting the css in the page that the html belongs to. An iframe is basically a window that lets you see outside your site. You can't change the view by changing the window.
If the iframe content is hosted on your own site and you have access to the css then you would need to design the page in a responsive manner so that it fits the viewport accordingly.
ikandee — 2013-05-08T19:24:13-04:00 — #3
Sorry I think I may not have been clear in my question - I am aware that the content in the iFrame belongs to a third party, what I meant was when you view the page on a mobile screen - the iFrame scrollbars are not visible and therefore the user can not even scroll the content within the iFrame left/right/up/down. Is there something I can do so they can? Thx.
ronpat — 2013-05-08T20:26:22-04:00 — #4
ikandee, when I reduce the size of my desktop screen to mobile size, the iframe's scrollbars are still present. Is this what you see, also? In which mobile devices are the scrollbars not visible?
ikandee — 2013-05-08T21:31:18-04:00 — #5
It seems to be happening on the iPhone and iPads... (blackberry and andriod are ok)
paulob — 2013-05-09T04:16:55-04:00 — #6
As far as I know the iphone doesn't show scrollbars on any internal elements and to scroll inside an overflow div you need to use [a two finger swipe. There is a script called [URL="http://cubiq.org/iscroll-4"]iscroll](http://www.flickr.com/photos/joostvanderborg/3240775419/) which should address the issue although I;ve never used it.
ikandee — 2013-05-13T21:02:41-04:00 — #7
Hi Paul - thanks I will take a look through it.