I have a very simple page that is driving me nuts:
There are 3 tables:
First table -- 3 cells equal width, cellpadding=0
Second table -- 3 cells equal width, cellpadding=2
These cells line up fine (I tried different cellpadding to make sure even though I know it is an interior measurement)
The third table -- has only 2 cells, and the third cell resizes itself to become width=151 -- so the cells do not line up.
Is this possibly a function of my flatscreen monitor? I don't think so -- I pulled it up on another machine with an old CRT and still see it offset...
Please note -- this is a very simplified version of the issue which is putting in a layer on a table and having the columns align -- so putting all cells in a single table will not solve the issue for me.
Maybe this is well-known and I am just stumbling on it -- but this is pretty disturbing to me. Can someone try this on their machine and tell me if I'm seeing things? Has anyone seen this before and dealt with it in a resonable way?
Thanks.
Dave
Code:
<html>
<head>
<title></title>
</head>
<body>
<TABLE WIDTH=450 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD WIDTH=150 BGCOLOR=Red> </TD>
<TD WIDTH=150 BGCOLOR=Blue> </TD>
<TD WIDTH=150 BGCOLOR=Green> </TD>
</TR>
</TABLE>
<TABLE WIDTH=450 BORDER=0 CELLPADDING=2 CELLSPACING=0 ID="Table1">
<TR>
<TD WIDTH=150 BGCOLOR=Blue> </TD>
<TD WIDTH=150 BGCOLOR=Green> </TD>
<TD WIDTH=150 BGCOLOR=Red> </TD>
</TR>
</TABLE>
<TABLE WIDTH=450 BORDER=0 CELLPADDING=2 CELLSPACING=0 ID="Table2">
<TR>
<TD WIDTH=300 BGCOLOR=Blue> </TD>
<TD WIDTH=150 BGCOLOR=Red> </TD>
</TR>
</TABLE>
</body>
</html>
There are 3 tables:
First table -- 3 cells equal width, cellpadding=0
Second table -- 3 cells equal width, cellpadding=2
These cells line up fine (I tried different cellpadding to make sure even though I know it is an interior measurement)
The third table -- has only 2 cells, and the third cell resizes itself to become width=151 -- so the cells do not line up.
Is this possibly a function of my flatscreen monitor? I don't think so -- I pulled it up on another machine with an old CRT and still see it offset...
Please note -- this is a very simplified version of the issue which is putting in a layer on a table and having the columns align -- so putting all cells in a single table will not solve the issue for me.
Maybe this is well-known and I am just stumbling on it -- but this is pretty disturbing to me. Can someone try this on their machine and tell me if I'm seeing things? Has anyone seen this before and dealt with it in a resonable way?
Thanks.
Dave