HTML5 iFrame Seamless Attribute
It's not supported correctly yet.
Chrome 31 (and possibly an earlier version) supports some parts of the attribute, but it is not fully supported.
Is there an alternative to the seamless attribute that works in all browsers
Although theseamless
attribute is not supported by any of the modern browsers, you might want to emulate it with css
to get you started:
iframe[seamless]{
background-color: transparent;
border: 0px none transparent;
padding: 0px;
overflow: hidden;
}
Note: with IE you might need to include additional attributes to get
seamless
outlook to work:
<iframe frameborder="0" allowtransparency="true" scrolling="no" src="...">
HTML5 CSS3 and IFRAMES?
The solution was to add overflow:hidden in the css of the file that was being loaded into the iframe. If the document is not something you can control the source code of, then use javascript to appent the overflow hidden attribute to it's body.
Remove border from IFrame
Add the frameBorder
attribute (note the capital ‘B’).
So it would look like:
<iframe src="myURL" width="300" height="300" frameBorder="0">Browser not compatible.</iframe>
Related Topics
Access Control Allow Origin Issue in Angular 2
Can Microdata Be Applied on Any Type of HTML Element
I Can't Get My Font-Awesome Icons to Show Up. Tried Importing CSS with Multiple Methods
Using .Otf Fonts on Web Browsers
Why Are Dashes Preferred for CSS Selectors/HTML Attributes
Form Inline Inside a Form Horizontal in Twitter Bootstrap
How to Remove Focus Around Buttons on Click
Base64 Encoded Image Is Not Showing in Gmail
How to Convert Screen Coordinates to Document Space in a Scaled Svg
Which Elements Support the ::Before and ::After Pseudo-Elements
Padding Is Not Working in Safari and Ie in Select List
How to Get a List of All Countries/Cities to Populate a Listbox
How to Display an .HTML Document , or .HTML Fragment at CSS Content
Set Width of Dropdown Element in HTML Select Dropdown Options
Pre-Populate HTML Form File Input
Bootstrap 4 - Sticky Footer - Dynamic Footer Height
CSS Object-Fit: Contain; Is Keeping Original Image Width in Layout