AndyMoireASP Posted October 23, 2009 Share Posted October 23, 2009 HiI have an iframe which displays inside a pdf document on my ASP Page, but when I display the page in a different screen resolution, say 800 x 600, the pdf document expands and overlays itself over other controls.Is there away, to control the size of the iframe so it stays the same size?Here is my markup<div id="pdfholder> <iframe src="userdoc.pdf" height="45em" width="80%"/></div> <div id="buttonholder"> <asp:button id="btnAccept" runat="server" onclick="accept"/> <asp:button id="btnReject" runat="server" onclick="reject"/> </div> Link to comment Share on other sites More sharing options...
justsomeguy Posted October 24, 2009 Share Posted October 24, 2009 The browser plugin that shows the PDF might have a minimum size that it shows itself as. What happens if you load the PDF in a separate window and make the window smaller? Link to comment Share on other sites More sharing options...
AndyMoireASP Posted October 25, 2009 Author Share Posted October 25, 2009 The browser plugin that shows the PDF might have a minimum size that it shows itself as. What happens if you load the PDF in a separate window and make the window smaller?Hi,Using Visual Studio 2008, I clicked on the source link in the code of the iFrame, and the page loaded to the full height of the page. However, I was wondering whether using html tables and placing the iframe within a td might help? I haven't tried it yet, though, but what do you think? Link to comment Share on other sites More sharing options...
justsomeguy Posted October 25, 2009 Share Posted October 25, 2009 I don't think the container will matter, but I'm not sure you answered my question. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.