?
Solved

shrink size in IFRAME?

Posted on 2002-06-02
5
Medium Priority
?
637 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 800 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

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.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

765 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