Forum Moderators: open
!importantrule! :-P)
tables where something to do with nesting,
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Untitled</title>
<script type="text/javascript" src="jquery-1.2.6.min.js"></script>
<script type="text/javascript">
$(function() { $('table').attr('border',1); });
</script>
</head>
<body>
<table style="width: 400px; margin:auto;" border="0">
<tr><td>blah</td><td>Blah blah</td><td> Blah de blah</td></tr>
<tr><td>blah</td><td>Blah blah</td><td> Blah de blah</td></tr>
<tr><td>blah</td><td>Blah blah</td><td> Blah de blah</td></tr>
<tr><td>blah</td><td>Blah blah</td><td> Blah de blah</td></tr>
<tr><td colspan="2">
<table border="0">
<tr><td>
I'm a nested table. Frankly, I don't know
how I got here because everyone tells me
I went extinct in 1995. But here I am,
deal with it.
</tr></td>
</table>
</td><td><-- OUCH!</td></tr>
</table>
</body>
</html>
For example, if a table is being displayed wider than it should be, how do you find out for sure which cell or combination of cells, and what particular elements within the cell, and/or what CSS attributes (margin, padding, border-width etc.) of the cell are forcing the table to be wider than it otherwise should be?