Forum Moderators: not2easy
<div style='background-color:blue;width:100px;'>width 100</div>
<table cellpadding='0' cellspacing='0'">
<tr><td style='background-color:red;width:100px;border-right:solid black 5px;'>width 100</td><td style='background-color:green;'>width 100</td></tr>
</table>
<table cellpadding='0' cellspacing='0'>
<tr><td style='width:100px;'><div style='background-color:red;border-right:solid black 5px;'><p>width 100</p></div></td>
<td style='background-color:green;'>width 100<br />line 2</td>
</tr>
</table> Alternatively, do you want a border around the inside so each table cell is separated by a 1 or 2 pixel margin, so it looks like little boxes? if so, you could just set the margin of your TD's at 2 px, and leave the border there - then it'll look like little boxes that are separated with whitespace between them.
I'm assuming your simplistic example doesn't do much for the full problem you're trying to work around, but in case I'm wrong, here's an example of compinsating for the width:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Page</title>
</head>
<body style="height: 100%; margin: 0; padding: 0;">
<div style="width: 150px; background-color: Blue">
width 150</div>
<div style="width: 140px; background-color: Lime; border: solid 5px black">
width 140 + 5px border</div>
<table cellpadding="0" cellspacing="0" style="width: 100%">
<tr>
<td style="width: 140px; background-color: Green; height: 100%; vertical-align: top; border: solid 5px Black;">
width 140 + 5 px border
</td>
<td style="background-color: Red">
Content<br />
Content<br />
Content<br />
Content<br />
Content<br />
Content<br />
</td>
</tr>
</table>
</body>
</html>