Can an iFrame size reflect a responsive web site?

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Can an iFrame size reflect a responsive web site?

Post by simonmlewis »

We want to show someone's web site, within our own web page, in a responsive manner to say "here's how yours looks".

So they would type in their web site address, hit Go, and on the iFrame, it would show their web site but in a smartphone sized window, and pretend to be narrow.
If I do that now, it just wants to scroll off the page.

Is this possible?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Can an iFrame size reflect a responsive web site?

Post by Christopher »

Seems like it would take less time to actually try it than to ask the question...
(#10850)
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: Can an iFrame size reflect a responsive web site?

Post by simonmlewis »

The idea is to have a page asking if their current site is responsive.
So enter your URL here, and hit Submit, and it would show in a box that would display it as responsive.

Saves them checking it on their phone, and is kin dof a way of demonstrating how their site appears.

So can it be done?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
Post Reply