the <td> ... </td> bug, Microsoft do something about it.

G

Guest

I've sent a post about it a few months ago and now I'll post again. It's
about this little bug that make me sick every time I'm develpoing a web page.
Here is a very very simple example:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="bug">
<title>bug</title>
</head>

<body bgcolor="#ffffff">

<table width="49%" border="0" cellspacing="0" cellpadding="0" align="left"
bgcolor="#66ff00" height="20">
<tr>
<td></td>
<td align="center" valign="middle"><img src="(EmptyReference!)" height="20"
width="32" border="0"></td>
<td></td>
</tr>
</table>

<table width="49%" border="0" cellspacing="0" cellpadding="0" align="right"
bgcolor="#66ff00" height="20">
<tr>
<td>
</td>
<td align="center" valign="middle">
<img src="(EmptyReference!)" height="20" width="32" border="0">
</td>
<td></td>
</tr>
</table>

</body>

</html>

Copy this and check it in IE. There 're two absolutely identical tables,
with only one small difference in the code. The <td>, <img ...> & </td> tags
in the second one are not on the same row, thus making IE to diplay the table
higher. This new rows must be igonred by the browser but they are obviously
not. Very, very, very stupid and annoying (a typical Microsoft job :)).

p.s. The same code is diplayed properly in Netscape!
 
J

jopa66

I certainly see the problem, I'm just not sure why this is happening. The
actual placement of the tags in the source document is causing slight
variations in how the browser displays the info. Perhaps you'd be better to
post this to an HTML group.

~john aka: jopa
 
C

Charlie Tame

Actually I found that making the two rows the same except for the > of the
img tag and the < of the /td tag worked as follows.
<

produced the effect and also
< (Space between) did it too.

Weird.

Charlie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top