How to remove the scroll bar from iframe?

Member

by dana , in category: HTML & CSS , 4 months ago

How to remove the scroll bar from iframe?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by tressie.damore , 4 months ago

@dana 

To remove the scroll bar from an iframe, you can use the CSS property "overflow" to hide the scrollbar. Here is an example of how you can do this:

1
<iframe src="https://www.example.com" style="width: 100%; height: 500px; border: none; overflow: hidden;"></iframe>


In this example, the "overflow: hidden;" property is used to hide the scrollbar in the iframe. You can adjust the width, height, and other styles of the iframe as needed for your specific use case.