Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi there, Almost the same questi

Status
Not open for further replies.

Mariootje

Programmer
Aug 10, 2001
33
NL
Hi there,

Almost the same question as this morning. Is it possible to open an page in a frame en have it automatically resized to the size of the frame, so you don't have to scroll to see the whole page.

Mario
 
sorry, its not like an image where everthing stretches to fit the area. A page can fit into a certain min width and a certain min height if a container is any less that those minimum dimensions you are gonna lose visibility of certain areas (if you do not have scrollbars on the frame).
 
Thanks Sjavree,

If I read you right it's better to work with images in this case. I'm going to give it a gow and have a look how it goes.

Greets,
Mario
 
Yes you can. Put everthing in the page that's being displayed inside of a table with width="100%". Everything should resize just fine to anysize frame or window.

Rick If I have helped you just click the first link below to let me know :)
 
ristmo2001,

yes - but only if the page is smaller than the window. It sounds like mariootje wants to make bigger pages shrink to fit a smaller window.

cheers!
 
Yes, I'm talking about shrinking. Any suggestions?
 
Sjravee,

Your previous suggestion when using style="width:90%; height:90%" worked well. Problem is that I get the pages delivered (from word), so, if possible, I want to shrink the pages in the frame.

Mariootje
 
If i remember correctly that was for images, I dont think you are gonna have the same luck with HTML pages or Word docs.

May be try looking at the 'zoom' style property. From its definition it looks like it may help you out. You will more than likely have to use scripting to capture the resize event and then adjust the magnification.

Find out the height and width of the frame, then find out the scroll height and width of the frame and then set the zoom percentage level accordingly, there will probably be a little math involved but nothing too heavy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top