I'm using IFrame to display a webpage in another webpage. The problem is the child webpage I'm displaying varies in size as it moves from link to link.

IFrame makes you put in a fixed size when you create it, but the size changes and I need to know how to re-size my main page based upon the child window.

Recommended Answers

All 2 Replies

Hello scarypajamas,
Frames are normally frowned upon ... but if you would like to paste your code or give us a link so we can see the problem in action we may be able to help some.

From what you have stated so far, the best I can suggest is to allow resizing, and for the size use percentages instead of pixels.

Use a frameset instead of an iframe, allows the child to be any size required.
thus you set the size of your parent and allow the child to be '*'

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.