1

I added a basic iframe to my website, and it is showing scrollbars (vertical and horizontal) that I can't get rid of in any way. I've been reading a lot about it on the Net, and nothing seem to work (like overflow: hidden, or scrolling="no"). What is the best and most standard way of fixing this, as of now / 2016?

Thanks!

Tom Smith
  • 125
  • 1
  • 1
  • 5

3 Answers3

0

Use the following CSS:

iframe::-webkit-scrollbar {
  display: none;
}
0

i would say

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

CSS

iframe { overflow:hidden; }

<body>
      <div class="ifrm">
        <iframe src="http://tholman.com/elevator.js/" height="300" width="300" scrolling="no"</iframe>
      </div>
    </body>
MKAD
  • 447
  • 2
  • 10
0

The <iframe> scrolling attribute is not supported in HTML5. Use CSS instead. The scrolling attribute specifies whether or not to display scrollbars in an <iframe>. Normally, scrollbars appear in an <iframe> when the content is larger than the <iframe>.

iframe {
    overflow: hidden;
}
Transformer
  • 3,642
  • 1
  • 22
  • 33