Forum Discussion
Vanessa Martin9
Nov 09, 2022Brass Contributor
SharePoint Online Modern: How to remove vertical scroll bar in Embed web part?
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 https://company.com/toolsresources/TestModernSite/SiteAssets/SitePages/Play/ImageMapTest.aspx 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?
Thanks.
Vanessa Martin9 Try using iframe code in this format:
<iframe src="/default.asp" width="100%" height="700"> </iframe>
OR
<iframe src="/default.asp" width="100%" height="700" style="overflow-y: hidden"> </iframe>
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.
- Vanessa Martin9Brass Contributorganeshsanap I tried both of your suggestions with no success.