Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unwanted margins on IMG tag
Message
From
16/04/2012 23:47:00
 
 
To
All
General information
Forum:
HTML5
Category:
HTML
Title:
Unwanted margins on IMG tag
Miscellaneous
Thread ID:
01541781
Message ID:
01541781
Views:
71
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
Next
Reply
Map
View

Click here to load this message in the networking platform