Forum Moderators: open

Message Too Old, No Replies

table cell has extra margin/padding in KHTML

Use table for layout, but page shows extra margin/padding..

         

flashfan

6:48 pm on Aug 12, 2005 (gmt 0)

10+ Year Member



Use table for layout:

<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td height="3" bgcolor="blue">&nbsp;</td></tr>
<tr><td height="1" bgcolor="white">&nbsp;</td></tr>
<td><td class="navbar">...</td></tr>
<tr><td height="1" bgcolor="white">&nbsp;</td></tr>
<tr><td height="7" bgcolor="#CCC">&nbsp;</td></tr>
</table>

It looks good in either IE or FF; but in Konqueror or Safari (KHTML), the height of cell (1,3) seems not working. And there are more white space produced around the cells.

Thanks for any suggestion.

flashfan

6:50 pm on Aug 12, 2005 (gmt 0)

10+ Year Member



add line-height helps KHTML, but not IE on Windows. :-(

tedster

9:57 pm on Aug 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried changing the font-size?