When I set padding in pixels in a cell in a table I get twice as much padding as I want. If I type STYLE="padding-left:50px" I get 100px of padding in IE4 on the mac, but the correct 50px in IE5 in Windows. I know there are bugs in these programs but that is a fairly major problem with layouts.
The following code demonstrates what I mean. In it a table is nested inside the cell of another. The outer cell is coloured yellow and has padding of 50px forcing the inner table accross 50pixels in windows and 100pixels on the Mac.
There is another table bellow which I have set to 100px wide. It is clearly the same width as the yellow padding, which is supposed to be only 50px on the Mac.
<HTML>
<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=1>
<TR><TD STYLE="padding-left: 50px; background: #ffcc66">
<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=1 WIDTH=300px>
<TR>
<TD STYLE="background: #ffffff">
<P>Table 1 (The Inner Table)</P>
<P>Padded out by 50px</P>
</TABLE></P>
</TABLE>
<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=1 WIDTH=100px>
<TR><td>
<P>Table 2</P>
</TABLE>
</HTML>
The following code demonstrates what I mean. In it a table is nested inside the cell of another. The outer cell is coloured yellow and has padding of 50px forcing the inner table accross 50pixels in windows and 100pixels on the Mac.
There is another table bellow which I have set to 100px wide. It is clearly the same width as the yellow padding, which is supposed to be only 50px on the Mac.
<HTML>
<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=1>
<TR><TD STYLE="padding-left: 50px; background: #ffcc66">
<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=1 WIDTH=300px>
<TR>
<TD STYLE="background: #ffffff">
<P>Table 1 (The Inner Table)</P>
<P>Padded out by 50px</P>
</TABLE></P>
</TABLE>
<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=1 WIDTH=100px>
<TR><td>
<P>Table 2</P>
</TABLE>
</HTML>