Forum Moderators: open

Message Too Old, No Replies

Simple table issue

probably been asked a thousand times....

         

JamesR

10:43 pm on Jun 20, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a colored table inside a black table cell. NS 4.79 shows lines between the cells in the colored table even though I have cellpadding and cellspacing set to 0 on both tables. NS 6.0 shows no lines. Any ideas how to get rid of these beautiful things?

Here is an example of stripped down code:

<table align="left" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>

<table align="center" width="600" cellspacing="0" cellpadding="0" bgcolor="#D6BEBE" class="nav">

<tr>
<td width="100%" valign="top" colspan="2" align="center">
</td>
</tr>
</table>

</td>
</tr>
</table>

nav class on style sheet is:

.nav {font: background: #D6BEBE; border-style: solid none solid none; border-width: thin; padding: 2px;}

I tried taking off the 2px statement - didn't work. I also can't set the first td to bgcolor D6BEBE because it ruins the color effect. hmmm...

[edited by: JamesR at 10:58 pm (utc) on June 20, 2002]

Mark_A

10:54 pm on Jun 20, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Border="0" in the nested table..

to test cut-n-paste the below
rem border="0" in the second table and see the little blighters come back in nn4.7 but not for example in MSIE 5.5 etc :-)

<TABLE BGCOLOR="#000000" CELLPADDING="1" CELLSPACING="0" BORDER="0" VALIGN="MIDDLE" ALIGN="CENTER">
<TR><TD>

<TABLE BGCOLOR="#FFCCFF" CELLPADDING="0" CELLSPACING="0" WIDTH="400" BORDER="0">
<TR><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR>
<TR><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR>
<TR><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR>
<TR><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR>
</TABLE>

Mark_A

10:55 pm on Jun 20, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



oops you need to add

</TD></TR>
</TABLE>

at the bottom

JamesR

11:00 pm on Jun 20, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



that is awesome, thanks Mark! You don't know how long I was racking my brain trying to figure that out.