Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 874765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:09:25+00:00 2026-05-15T11:09:25+00:00

I am loading a PDF inside of an IFrame inside of a popup window.

  • 0

I am loading a PDF inside of an IFrame inside of a popup window.

I have the PDF loading correctly in IE6 and IE7 – however there is an issue I am trying to solve.

When I load the PDF in the IFrame within IE7, and I resize the window from the right side of the window horizontally, the PDF does not scale down the window will resize down to where I cant see the whole width of the PDF. If I resize from the bottom corner of the window, the PDF resizes/scales horizontally just fine.

In IE6, when I resize from the right side of the window horizontally, the PDF rescales correctly, and also from the bottom corner.

Any idea why the PDF is not scaling down when I resize from right side of popup window in IE7? Any help greatly appreciated.

Here is my HTML for the IFrame:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <style type="text/css">
      * {
        padding: 0;
        margin: 0;
        }
        html, body {
     width:100%;
        height: 100%;
     overflow:hidden;
        }
        #container{
        min-height: 100%;
        }
        * html #container {
        height: 100%;
        }
    </style>

</head>
<body>
    <form id="frmMine" runat="server">
        <div>
            <iframe style="min-height:500px;min-width:100%; max-width:100%;height:auto !important;" id="iframe" runat="server"></iframe>
        </div>
    </form>
</body>
<script type="text/javascript">
        function resizeIframe() {
            var height = document.documentElement.clientHeight;
            height -= document.getElementById('iframe').offsetTop;
            height -= 5;
            document.getElementById('iframe').style.height = height + "px";
        };
        document.getElementById('iframe').onload = resizeIframe;
        window.onresize = resizeIframe;
    </script>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T11:09:26+00:00Added an answer on May 15, 2026 at 11:09 am

    IE6 not supporting min-/max- might explain the discrepancy. As for actually accomplishing what you want, is there some reason you’re not using just * { width: 100%; height: 100%; overflow: hidden; margin: 0; }?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a weird issue with Firefox and loading of a PDF inside an
I have multiple pdf files. Based on user input i am loading the pdf
I have seen lot of threads about loading a PDF in Android Webview. But
I have an UIActivityIndicator that should loop until a PDF file is loading. I
Im having trouble loading pdf's in a UIWebView when inside a Scrollview with paging
I´m trying to have a loading image while waiting for the server to generate
We have a serious problem to tackle here. We are loading pdf documents as
I have an application in which i am loading a pdf from the bundle
How do I display a loading.. while <iframe id=pdfViewer name=pdfViewer src=foo.pdf></iframe> are not ready?
I'm loading my files (pdf, doc, flv, etc) into a buffer and serving them

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.