Solved

iframe overflow:hidden not working on IE,Chromium

Posted on 2009-03-29
2
1,457 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
.CSS HTML Help 3 55
Do I need to force my browser to see my new Favicon 4 46
CSS (jquiry mobile) question 3 34
iframe stay to the left of page 5 29
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

737 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