Forum Moderators: open
My problem is that a table of mine (or rather a nested table) refuses to render with proper alignment of the cells in Internet Explorer (6). The same page renders just fine in Mozilla.
The page in question: <sorry, no links to personal pages>
The problematic cell is the one containing the small icon in the top left corner of every article. In Mozilla it correctly renders the cell around the image, but IE seems to render the cell width differently each time I change the code.
Can anyone see any obvious problems or mistakes?
Thank you!
/Daniel
[edited by: tedster at 11:25 am (utc) on June 12, 2003]
One of the issues here is that browsers are not required (W3C standards) to follow table or cell width/height attributes to the exact pixel. In fact, user agents are given great latitiude in how they deal with such instructions, as they must if they are not to get crashed by conflicting instructions in different parts of the table.
If table cells need to be perfectly lined up in columns, then the only sure thing is that they need to be part of the same table. Placing an image in a cell only guarantees that the cell will be at LEAST that wide - and even if you give the TD an exact pixel width, it may still be rendered wider than that.
So outrun's idea about making another cell on the same line be width="100%" makes sense. If you only have two cells in the row, that approach "should" force the other cell's width down to the width required to display image.