Iframe scrollbars not showing in IE8

I have an IFrame on my page that I would like to show the vertical scroll bar ONLY (without the horizontal scroll bar). I can make it work exactly the way I want it in Firefox, but the scrollbars just don't appear in IE (8).

<iframe name="Frame" id="Frame" frameborder="0" scrolling="yes" marginwidth="0px" marginheight="0px" style="height:300px; width:1055px; overflow-x:hidden; margin-left:-30px"></iframe> 

I tried putting above in the div, and I finally got scrollbars, but since the IFrame itself does not grow, they are never activated.

Are there any IE properties that I can use to make this work in both browsers, or am I not mistaken?

Thanks Jeff

+4
source share
3 answers

I needed to set the height on the page that appears in the iframe.

This was difficult because the page is actually a sharepoint web part with everything dynamically created in VB

Thank you for your responses.

0
source

You use the overflow-x property in your style attribute to remove the scroll bar (AFAIK).

Try setting overflow-x to scroll

+1
source

try setting overflow-y:scroll; explicitly on the iframe, you also probably need to set overflow:hidden; to the iframe container (parent) according to this other answer: Safari / Chrome (Webkit) - Cannot hide iframe vertical scrollbar .

+1
source

All Articles