Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing default 15 pixels height
Message
De
12/04/2015 21:32:06
 
Information générale
Forum:
HTML5
Catégorie:
IFrame
Divers
Thread ID:
01618235
Message ID:
01618266
Vues:
35
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform