Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unwanted margins on IMG tag
Message
De
16/04/2012 23:47:00
 
 
À
Tous
Information générale
Forum:
HTML5
Catégorie:
HTML
Titre:
Unwanted margins on IMG tag
Divers
Thread ID:
01541781
Message ID:
01541781
Vues:
72
If I do not use HTML 5 DOCTYPE declaration, the proper HTML will generate a 2 pixel top margin before starting to show the table:
<body>
<IMG SRC=Images/Point.gif Width=1 Height=2>
<BR>
<TABLE CELLSPACING=0 CELLPADDING=0 WIDTH=1000 ALIGN=CENTER>
But, if I add a DOCTYPE html declaration, this creates an extra margin wherever I have an IMG tag. In this case, it creates an extra 13 pixels in height before starting to show the table.

My stylesheet contains a style for the Body of Font-Size: 13px;. If I put this to 0, I don't have this effect. But, I need this Font-Size to be declared in the Body. How to avoid this effect?
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform