Solved

iframe overflow:hidden not working on IE,Chromium

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
login jsp example 24 46
change button location when you go on your cellular device 21 29
Using jQuery to set a DIV attribute on page load 9 29
div to fit another div 8 21
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

785 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