Solved

iframes that resize to screen resolution

Posted on 2008-10-23
4
986 Views
Last Modified: 2012-05-05
I am looking for good code that will resize an iframe to any user's screen resolution in ie7, firefox and google chrome.

I am currently using IFrame SSI script II from Dynamic Drive DHTML, but am finding that pages are being cut off on monitors where screen resolution is set smaller than 1024x768.

Can anyone help me out?

Thanks!
0
Comment
Question by:ekopelowitz
[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
  • 2
4 Comments
 
LVL 8

Expert Comment

by:MatthiasVance
ID: 22784498
Why do you want the iFrame to be the user's resolution? There are also browser components in the way if you try to do this.

Kind regards,

Matthias Vance
0
 

Author Comment

by:ekopelowitz
ID: 22784929
Basically, I am looking for a way to dynamically adjust the height of an iframe so that when a user maximizes their browser window, the screen is not limited by the iframe. Without this code, the iframe cuts in the middle of the page and a (sometimes) unnecessary scroll bar.

Any suggestions are welcome.

Thanks!
0
 
LVL 8

Accepted Solution

by:
MatthiasVance earned 500 total points
ID: 22785089
Here's some simple example code, I don't know if it fits in your situation. If not, please give me some more detail about the page you're trying to resize the iframe in.

Kind regards,

Matthias Vance
<style>
* {
	margin: 0;
	padding: 0;
}
</style>
<iframe src="http://www.google.com/" width="100%" height="100%" frameborder="0">

Open in new window

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

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

724 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