I have the following simple table to reproduce the problem:
<TABLE>
<TR>
<TD style="border: black solid 1px; width:24px; height:68px; margin:0px; padding:0px" >
<IMG
style="width: 24px; height: 68px; margin:0px; padding:0px; border:none"
src="Image24x68.png">
</TD>
</TR>
</TABLE>
The image actually has a size of 24x86 pixels. A border is intended only to indicate cell boundaries. There is no css document assigned to the document.
I want the cell to be as big as the image.
The problem is that the table cell is always rendered a few pixels too high in any version of IE (6, 7, 8), while it works fine in Firefox and other browsers.
Is there any solution / workaround for this?
source
share