Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing default 15 pixels height
Message
From
12/04/2015 21:32:06
 
General information
Forum:
HTML5
Category:
IFrame
Miscellaneous
Thread ID:
01618235
Message ID:
01618266
Views:
37
>Newer browsers tend to ignore element tags on any DOM element. There are a few tags that are excepted though and IFRAME may be one of them. But in general you should not use attribute based styles, but rather use the style= tag or CSS stylesheet settings.
>
>You should see if you have margins or padding on the IFRAME tag or your base styling for elements. If you're not using some sort of CSS Reset you can probably do:
>
>
>iframe { margin: 0; padding: 0; border: 0; }
>
>
>I see you found your solution by adding a wrapping div. You should also be able to make the iFrame itself invisible with display:none on the iFrame tag itself. You probably can avoid the wrapper.

Thanks, I earlier on tested on the style approach, as well as the visibility. This did not change anything. Then, I found this workaround. I just tried your suggestion. Visibility alone will not work. Margin alone will not work. However, both combined worked. I will adjust my code to use it like that instead.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform