views:

27

answers:

4

I need to embed a website in another website ( throught an iframe I think ). I want to embed this website in this resolution: 200x150 pixel.

How can I do that ?

+1  A: 

It's impossible to scale entire web sites programmatically, whether in an iframe or not.

You would have to take a screen shot of the embedded page on server side, resize that and serve it as an image.

Pekka
A: 

If you mean scale the website down to fit in that frame then you can't.

seengee
A: 

The website would have to be uncommonly small to fit those dimensions.

<iframe src="http://www.google.com" width=200px; height=150px;></iframe>
David
A: 

If you don't have access to the iframed site itself, then there's very little you can do since you can't access iframe from other domains with Javascript.

However, if you are able to change the external page, you could either pass a URL parameter or try CSS3 media queries. For the URL parameter you would simply include a secondary stylesheet if the parameter was present that changed the layout or reduced the size of the web page in some way.

DisgruntledGoat