Posted: Sun Oct 05, 2008 1:48 pm Left align images leave gap in table
There is a small vertical gap on the left side of this image using IE 7.0. It does the same thing for right aligned images too. It looks fine under Mozilla. Any clue of fix or bug?
<table border=1 cellspacing=0 cellpadding=0 align=center>
<tr>
<td><img src="/images/cross-yellow.jpg" border="0" width=40 height=40 align="left">Small gap on the left</td>
</tr>
<tr>
<td><img src="/images/cross-yellow.jpg" border="0" width=40 height=40 align="right">Small gap on the right</td>
</tr>
</table>
Joined: 28 Feb 2007 Posts: 1416 Location: Biloxi, MS
Posted: Sun Oct 05, 2008 3:52 pm
That's an IE bug that's usually not worth fixing and what happens when you use tables for page layouts. To really do it right, you'll notice the below code puts the images right up next to the td borders as it should and that the td border does not interfere with the actual table border.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum