How can I hide horizontal scrollbar on an iframe?

0
=
0
+
0
No specific Bitcoin Bounty has been announced by author. Still, anyone could send Bitcoin Tips to those who provide a good answer.
0

I need to hide scroll in Iframe

Tags: , ,

1 Answer

1
=
0
=
$0
Internet users could send Bitcoin Tips to you if they like your answer!

You can try this combination in your code:

  1. CSS overflow-y: hidden;
  2. scrolling="no" (for HTML4)
  3. and seamless="seamless" (for HTML5)

<!-- begin snippet: js hide: false -->

<!-- language: lang-css -->

.foo-class {
  width: 200px;
  height: 200px;
  overflow-y: hidden;
}

<!-- language: lang-html -->

<iframe src="https://google.com" 
        class="foo-class" 
        scrolling="no" 
        seamless="seamless">
</iframe>

<!-- end snippet -->

SEND BITCOIN TIPS
0

Too many commands? Learning new syntax?

FavScripts.com is a free tool to save your favorite scripts and commands, then quickly find and copy-paste your commands with just few clicks.

Boost your productivity with FavScripts.com!

Post Answer