Resizable IFrame Even In Dnn7

Iframe that resizes properly with content even in dnn7. Seems to work well with all the main browers and iphone and android.

Not really sure what the reasoning behind IE always being special is.  Anyway  having the div with that px and the iframe with a slightly smaller percentage than 100% seems to do the trick of preventing the inner iframe from having another scrollbar.  IE also required the other div to have a height in px.  Iphone needs that webkit-overflow-scrolling:touch, thanks to SO posters.

<div style="-webkit-overflow-scrolling:touch; overflow: auto; height:800px;min-height: 100%;">
<iframe src="yourpage" width="100%" height="97%"></iframe>
</div>

Comments

Popular posts from this blog

Asp.net Publishing Broke Site - "App_WebReferences is not allowed because the application is precompiled"

Telerik - Custom Group Footers In RadGrid

Bootstrap Modal Popup is Grayed Out