SharePoint Online Modern: How to remove vertical scroll bar in Embed web part?

Brass Contributor

The site is in the modern experience. I want to embed an image map. The code for the image map is saved as an .aspx file. 

When I put in the Embed web part, the image displays, and the image map works but there is a vertical scrollbar.

When I try:

<iframe scr="URL" width="1400px" height="690px"></iframe>, or

<iframe scr="URL" width="1400" height="690"></iframe>

I get the error message: "We can't show this embedded content because the code seems to be incomplete. Make sure that the embed code includes width, height and a valid address for the src attribute."

How do I remove the vertical scroll bar?


2 Replies

@Vanessa Martin9 Try using iframe code in this format: 


<iframe src="/default.asp" width="100%" height="700">




<iframe src="/default.asp" width="100%" height="700" style="overflow-y: hidden">


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

@ganeshsanap I tried both of your suggestions with no success.