Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing default 15 pixels height
Message
 
À
12/04/2015 12:23:39
Information générale
Forum:
HTML5
Catégorie:
IFrame
Divers
Thread ID:
01618235
Message ID:
01618265
Vues:
61
This message has been marked as the solution to the initial question of the thread.
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.

+++ Rick ---


>The display of the IFrame, even if this is set to Height=0, will use 15 pixels in height.
>
>For example, this could be a definition:
>
>
><iframe name="IFrameTransaction" id="IFrameTransaction" frameborder="0" width="0" height="0"
> scrolling="no" allowTransparency="true"></iframe>
>
>
>So, if I use document.body.clientHeight, it might say 850. However, if the iframe line is not there, it will say 835. Has anyone found a way to include an iframe tag in a page without having it to take this default 15 pixels?
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform