AARGH!
First of all, if you are looking with Netscape 4x, you will see
that by fixing the width of the middle cell *only* -
<td bgcolor="#CCFFCC"> </td> <td bgcolor="#FFCCCC"> </td> <td bgcolor="#CCFFCC" width="75" class="mono">a</td> <td bgcolor="#FFCCCC"> </td> <td bgcolor="#CCFFCC"> </td>
I have made the table go completely out of shape. And what's worse
is that Netscape 4x has completely ignored my directive to make
the middle cell 75 pixels wide.
This means that I can't constrain a cell to any given width just
by setting its "W" field in the property inspector - and
that's the truth!
Now look what happened in the next-to-last row - I simply put a
space in the midst of the string of letters so that the characters
would wrap in the cell. Guess what that did? It made the cell double
the height, and hence the rest of the row! But not in Netscape,
where you see about the same rendering as you see in the Dreamweaver
edit window, except for me, in Netscape, the middle column is so
wide that the space doesn't even break the line - even with the
75 character width specification - Netscape just doesn't obey this
as anything other than a suggested MINIMUM width!
This illustration also points out an interesting difference between
Netscape and Internet Explorer's method of dealing with tables.
Intenet Explorer tries to follow the 75 pixel width specification
until it can no longer do so because of the cell's content at which
point it expands the cell. Netscape, on the other hand, works as
expected until I enter that 75 pixel cell width, at which
point it looks at each of the other cells, resizes them based on
their content (remember the " ") and gives the
remainder of the space to the middle cell - in spite of the 75
pixel specification!
Now look at the last row. See what happens to the table when I
put a single "a" character in the second cell? It's deja
vu all over again!
Friends, this is why people hate tables and why they get frustrated
trying to drag cell borders and set cell widths and heights.
The bottom line is - just say no to all of these attempts to control
your tables. If you need a cell to be a certain width, shim it with
a transparent GIF. Watch what happens to the table above when I
add a second row and put 100 pixel wide and 1 pixel tall shims in
each cell in this second row -
|