Avatar of Thread7
Thread7
 asked on

Scale the html inside an iframe.

I have an iframe in a page and want toscale the html that appears inside it so that it is smaller an fits the surrounding page better.  Is there any way to do this?
HTMLCSSJavaScript

Avatar of undefined
Last Comment
Thread7

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
zrgiu

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
aisebastian

Hi,

You could do something for the horizontal direction, by setting the css width atribute to 100%. You can do the same gfo the vertical direction, height: 100%, but if you are in the xhtml standard, only the horizontal  will stretch to the width of the iframe... However, if you have content that is wider than the space the iframe provides, it will stretch beyond it. So, as long as you take note that the content in the iframe is not wider, the "width: 100%" in css should work for you
Thread7

ASKER
Ok, can't do it well.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck