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
Solved

shrink size in IFRAME?

Posted on 2002-06-02
5
620 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
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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Suggested Solutions

Title # Comments Views Activity
Understanding mobile browsers 9 84
Border and image sizing 5 29
Hide cell in a table 2 27
Obtaining data on ASP 8 29
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

838 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