How to disable scroll on an HTML iframe with CSS?

Spread the love

To disable scroll on an HTML iframe with CSS, we set the overflow property and the scrolling attribute.

For instance, we write

<iframe src="" scrolling="no"></iframe>

to set the scrolling attribute to no.

And we write

iframe {
  overflow: hidden;
}

to hide the scrollbars with overflow: hidden;.

Leave a Reply

Your email address will not be published.