Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

have a requirement that to fit the iframe width to fit window,so that only browser window scrollbar should appear.(iframe scrollbars should not appaear)

have used iframe property scrolling="no",but the iframe has gridview which has large data,if i use the scrolling property the data that appears in gridview gets clipped.

aftergoogling have found autoresize script inspite of using that code it didn't work out.

please help and suggest sollution for this.

thanks in advance.
Posted

1 solution

try the below link. it shows a simple jquery that you can copy and paste
and it would resize the iframe.
http://webdevrefinery.com/forums/topic/8300-dynamically-resizing-an-iframe-to-fit-within-the-browser-window/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900