How to delete scrollbars on an iframe?

Member

by daisha , in category: HTML & CSS , 3 months ago

How to delete scrollbars on an iframe?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by scotty_walker , 2 months ago

@daisha 

To delete scrollbars on an iframe, you can add the following CSS code to your webpage:

1
2
3
iframe {
  overflow: hidden;
}


This will hide the scrollbars on the iframe element. You can also set the scrolling attribute of the iframe to "no" to prevent scrollbars from appearing:

1
<iframe src="https://www.example.com" scrolling="no"></iframe>


By using one of these methods, you can remove the scrollbars from the iframe on your webpage.