2

I am trying to restrict the width height inside iframe.

for example:

 <iframe src = 'http://www.yahoo.com' style="width: 130px; height: 100px;> </iframe>

I want www.yahoo.com as small as my iframe. In other words, squeeze the yahoo page.

Are there anyways to work around this or this is an dead end. Thanks so much!

Rouge
  • 4,181
  • 9
  • 28
  • 36

2 Answers2

1

You could use CSS to scale the frame to a smaller size (likely reducing its usability), but you can't modify the style of the iframe content from outside of it

Javascript / CSS: set (firefox) zoom level of iframe?

Community
  • 1
  • 1
Ding
  • 3,065
  • 1
  • 16
  • 27
1

You can simply write your code like this src="www.yahoo.com" width="200" height="200"

cimo45
  • 21
  • 4