Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unwanted margins on IMG tag
Message
De
23/04/2012 17:41:56
 
Information générale
Forum:
HTML5
Catégorie:
HTML
Divers
Thread ID:
01541781
Message ID:
01542375
Vues:
32
>I noticed your BR but wanted to focus on your question only in order not to appear like a HTML Nazi. Glad it worked out.

Another way to work around it with preserving the inline is with this:
TD IMG
{
   Vertical-Align: Bottom;
}
As far as the BR, it was there and I no longer use it. However, this was not the cause of the gap. This is a W3C standard and since modern browsers all follows up, when using DOCTYPE, this is a normal behavior. So, wherever I need to space something, I call a method in the framework. This method encapsulates the spacing inside a DIV with Font-Size: 0px. So, this works in HTML5 as well as in quirk mode.

But, whereas not needed, the above style resolves the issue to preserve the inline items in a table row without the disavantage of having to deal with the gap.
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