Solved

iframe overflow:hidden not working on IE,Chromium

Posted on 2009-03-29
2
1,445 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
Comment Utility
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
Comment Utility
Thanks. Never thought that I still need to setup attribute in the html.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now