Search code examples
sharepointiframemossweb-partscewp

Removing scrollbars from Content Editor/Page Viewer Webpart


I am trying to display an HTML page inside another SharePoint webpart page.

I used the Out-of-the-box page viewer webpart, but the page viewer webpart displays a disabled scrollbar inside it.

I also tried using a content editor webpart with an IFRAME tag in it, but still it didnt't work.

This is the code i used in the content editor webpart.

<iframe name="Iframe" src="URL1" scrolling="no"
    FRAMEBORDER="0" style="width:100%; border:0;  height:100%; overflow:hidden;">
</iframe>

Solution

  • "width:100%;height:100%" may be the culprit. make size of the iframe larger than the frame window. Also try using scrolling="no"