iframe overflow:hidden not working on IE,Chromium

Dear experts,

Page is rendered in transitional mode.

iframe #sampleframe {
    position:relative;
    border:0px;
    height:100px;
    width:800px;
    overflow:hidden;
    display:block;
}

When the source page has bigger height and width, scroll bars came out in IE and Chromium instead of hiding the extra content. It only works in FF. How to solve?
candychan611Asked:
Who is Participating?
 
zerooConnect With a Mentor Commented:
You can hide the scroll bars for an iframe by simply adding the property scrolling="no" to the iframe tag like in the code snippet.
<iframe src="http://example.com" scrolling="no"></iframe>

Open in new window

0
 
candychan611Author Commented:
Thanks. Never thought that I still need to setup attribute in the html.
0
All Courses

From novice to tech pro — start learning today.