Resize Contents to fit Window

Posted on 2007-10-08
Last Modified: 2012-05-05

I am currently seeking a way to resize the contents of a web page that I do not control, to fit the current browser window size. The page contains text as well as images, and I'd need it to resize the images as well. It needs to be compatible with IE6 - however other browsers would be a bonus. This could be through an iframe or with plain javascript. I am open to any suggestions on how I could achieve this.

Many Thanks,

Question by:rpsc3
    LVL 4

    Accepted Solution

    Are you able to add JS to the page? You won't be able to execute JavaScript through a frame or iFrame due to security accross domains... Can you describe the circumstances?
    LVL 3

    Expert Comment

    I don't believe there is a way to visually reduce the size of any webpage that you do not control so that it no longer has a horizontal scroll bar (I assume this is what you mean).

    Actually resizing an entire webpage would require manually changing the width and height attributes of each individual object on the page. (in addition to changing the font size). I am not sure if a proxy website exists which already does this. Maybe another expert will know....

    Author Comment

    Thanks for the fast responses. Basically we use a web based traffic monitoring system, and are currently looking to use some new Samsung Intelligent monitors that have an embedded version of XP. The monitor can display web pages, however when you have multiple windows then it simply resizes the window - leaving scroll bars all over the content. As we cannot really edit the code (as we still want it to appear normal for everyone else's browser) I am looking for a way of basically taking shrinking that entire page down to the visible size that you can see on the screen.
    LVL 3

    Assisted Solution

    >>I am looking for a way of basically taking shrinking that entire page down to the visible size that you can see on the screen.

    If that is what you want I am almost sure it is impossible. If you have access to the code, perhaps you could create a special version of the site for those with smaller resolution sizes? (We are dealing with only one site, correct?) Also, take into account that if you shrink the rest of the site the text will also be smaller and might become unreadable.
    LVL 1

    Expert Comment

    Forced accept.

    EE Admin

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
    JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    732 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now