|
Posted by Matt White on 08/07/07 16:59
On Aug 7, 9:53 am, Matt White <whit...@gmail.com> wrote:
> Ok, I've tried several different DOCTYPEs as documented athttp://msdn2.microsoft.com/en-us/library/ms535242.aspxand IE still
> won't work properly. Firefox works fine with all of them. Any ideas as
> to why? Thanks.
>
> New HTML:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
> <title>Test</title>
> <meta http-equiv="Cache-Control" content="no-cache">
> </head>
> <body>
> <table cellpadding="0" cellspacing="0" width="760">
> <tr>
> <td bgcolor="#ff00ff">
> <img src="top_left.png">
> </td>
> <td width="740" bgcolor="#00ffff">
> </td>
> <td bgcolor="#ff00ff">
> <img src="top_right.png">
> </td>
> </tr>
> </table>
> </body>
> </html>
Ok, I got it. In case anyone runs into this silly IE only problem, it
treats the extra whitespace on either side of the img tag as literal
and thinks that you've entered text into the table, so it puts that
into the cell. Retarded. Basically, you have to have <td><img ...><td>
for it to work right.
[Back to original message]
|