Solved

shrink size in IFRAME?

Posted on 2002-06-02
5
625 Views
Last Modified: 2009-07-29
My problem is this :

I have a local html file, which has inside itself an IFRAME that calls an outer URL..

now my question is, is there a possibility to use html/css/javascript (client side things..) to shrink what there is inside the IFRAME? The page that it calls is bigger than what I can see in the iframe, and I want to be able to see the most of that page...

Thanks in advance.
0
Comment
Question by:Kalimero
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7049814
If it page being load is from your own site thenjust change the page to fit the iframe.  If the page is from another site.  There is nothing you can do.  You cannot access anything on a page from another domain.  

If the page is too big then you the users will have to scroll to see it all.

Cd&
0
 
LVL 2

Expert Comment

by:TenTonJim
ID: 7049841
You could actually call another instance of the "outer" page so to speak, with your larger content in the iframe, and adjust the iframe sixe to whatever you need.
Klunky perhaps but it would work.

JimS.
0
 
LVL 22

Accepted Solution

by:
CJ_S earned 200 total points
ID: 7050792
Yes you can. The following illustrates that, though it will only work in new IE versions (from version 5.0)

<iframe src="http://www.google.com" style="zoom:0.5;height:500px;width:500px;"></iframe>
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 7050793
Please note that the size you set for the iframe will also be zoomed.

CJ
0
 

Author Comment

by:Kalimero
ID: 7069889
Thanks a Bunch!

I was looking for years for a fix!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question