Solved

iframe overflow:hidden not working on IE,Chromium

Posted on 2009-03-29
2
1,452 Views
Last Modified: 2012-05-06
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?
0
Comment
Question by:candychan611
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
zeroo earned 125 total points
ID: 24017323
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
 

Author Closing Comment

by:candychan611
ID: 31564206
Thanks. Never thought that I still need to setup attribute in the html.
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question