How to get rid of the double scroll bar when using an iframe?

iframe hide scrollbar but allow scrolling
iframe hide vertical scrollbar
iframe use parent scrollbar
how to make iframe scroll with page
remove scrollbar from iframe
iframe scrollbar css
remove scrollbar from iframe using javascript
disable scrolling in iframe

I've seen this problem on the web, and all the suggested solutions aren't working for me, so I thought I'd come here.

I have a page that has an iframe. The top of the page is a dropdown menu, the rest of the page is the iframe. The idea like I'm sure everybody else does, is to have the menu stay stationary and the menu selection runs an application in the iframe. The contents of the iframe should scroll, but the page as a whole should not.

I've tried putting the iframe width=height=100% inside a single table element also with width=height=100% but I get two scrollbars if I make the window too short vertically.

Any suggestions?

I think I didn't explain myself well. I want to keep the scroll bar in the iframe as auto, but I don't ever want a scroll bar for the whole page. I need the iframe to size appropriately so it always takes up exactly the remainder of the page so the browser doesn't have to make a scroll bar because the iframe should never extend off the bottom of the viewing area.

UPDATED:

DEMO: http://jsbin.com/ewomi3/3/edit

HTML

<table border=0 cellspacing=0 cellpadding=0 id="hold_my_iframe">
    <iframe src="http://www.w3schools.com/css/tryit.asp?filename=trycss_overflow" width=100% height=100% marginwidth=0 marginheight=0 frameborder=0></iframe>
</table>

CSS

* { margin:0 padding:0 }
body { margin:0; padding:0; text-align:center }  
#hold_my_iframe { padding:0px; margin:0 auto; width:100%; height:100% }

NOTE: I have finally understood what you want! Use table tag instead of a div tag as container! See the demo and enjoy it!

How to hide scrollbar from iFrame?, done to keep the menu in the correct position on mobile devices. I am trying to get rid of scroll bars on iFrames, but our application is a little tricky I think. We are providing HTML for a client to copy and paste on their web site. The HTML is as follows:

set css overflow to hidden on whatever frame you want to rid scroll bars from...

overflow:hidden

Removing Scroll Bars and Borders, Hi, I am trying to remove the vertical scrollbar in my iframe but I also want the iframe to be vertically scrollable with the mousewheel. <iframe  There are lots of posts to be found online about disabling scrolling in the iframe, then using JavaScript to capture mouse events or key strokes, then to scroll accordingly.

I know this was a bit old, but here's what I did for my page:

I had a page with just an iFrame, and I wanted it to take up the entire page, so I used

<iframe style="height:100%;width:100%" src="..."></iframe>

After I added the appropriate padding/margin/border removal, I had the double scrollbar problem you described. Using Chrome's inspect feature, I discovered that the body of the page was about 5px longer than the iframe, so I just modified the iframe code:

<iframe style="height:100%;width:100%;margin-bottom:-5px;" src="..."></iframe>

That margin-bottom:-5px; fixed the issue for me.

Double Scroll Bar on Website, Hi,. I am embedding my survey in a wordpress site using iframe and I would like to remove the vertical scroll of the survey in the embed. Learn how to hide scrollbars with CSS. Add overflow: hidden; to hide both the horizontal and vertical scrollbar. To only hide the vertical scrollbar, or only the horizontal scrollbar, use overflow-y or overflow-x: Note that overflow: hidden will also remove the functionality of the scrollbar. It is not possible to scroll inside the page.

For anyone who still having this double scrollbar issue, all you have to do is to wrap the iframe with an element with overflow: hidden, then add a 100% height to the html, body, iframe, and the wrapper.

http://jsfiddle.net/KZ5wz/ ( i don't know why the result is not displayed properly in JsFiddle but it is working like a charm in my machine )

HTML iframe scrolling Attribute, I have embeded a WordPress page in Canvas, works well with the exception of two scroll bars. Any suggestions to remove and only have one  I want to keep the scroll bar in the iframe as auto, but I don't ever want a scroll bar for the whole page. I need the iframe to size appropriately so it always takes up exactly the remainder of the page so the browser doesn't have to make a scroll bar because the iframe should never extend off the bottom of the viewing area.

<style type="text/css">
body {margin:0; overflow: hidden;}
iframe {border: none;}
</style>
<body> 
<iframe height="100%" width="100%" src="yourframe1.html"></iframe>
<iframe src="yourframe2.html" width="100%" height="100%"></iframe>
</body>

Removing vertical scrollbar in iframe - HTML & CSS, The following CSS rule makes scrollbars compulsory on IFrames. the overflow-​y: scroll with overflow-y: auto and it seems to be working so far  Complete steps is described in this video regarding How To Hide Scrollbar With Scroll Enabled Using CSS If you got any clarification on this, please write it on Comment section. We will definitely

[Solved] How to remove vertical scroll in iframe embed – Help , Inspect your website on browser with Ctrl + Shift + I or simply right click on the iframe in your browser and select inspect. Check out if your css property is being​  Remove Scrollbars From any Div with CSS Recently I’m seeing quite a few people asking how to remove scrollbars from their page, both vertical and horizontal scrollbars. What I’m going to explain isn’t just for removing scrollbars but can also be used to make them appear permanently.

How to remove double scroll bar in an iframe, To hide the vertical scroll bar, clear the Show vertical scroll bar check In this example we have chosen to use a thin scrollbar, with a green Set the width and the height of the div, to be slightly less than that of your iframe. 5. ASP.NET Forums / General ASP.NET / HTML, CSS and JavaScript / how to hide Iframe scroll bars using CSS in Chrome and IE? how to hide Iframe scroll bars using CSS in Chrome and IE? [Answered] RSS

Unnecessary scrollbar on IFrames. · Issue #305 · noelboss , You're basically getting a double scrollbar because your giving the body min-​height of 100vh AND setting an overflow. It appears this was done  I suppose Microsoft is trying to make things easier on us by forcing people to try to write lousy unreliable css to try to get rid of my scrollbars on my iframe and taking away all of the useful attributes I used to love to control in the iframe tag.

Comments
  • updated once more, this should work as expected! ;-)
  • I edited my question, I want the iframe to scroll, but not the main browser page.
  • You are a life saver :) (y)
  • I don't just want the scrollbar to go away, I want the need for the scroll bar to go away, I edited my question to try and make the problem more clear.
  • Your answer was flagged by the automatic low quality filter. Please add some more information. Why are you suggesting this code? What changes do you made.