0

I am trying to get rid of the border space between the cells. I thought cellspacing would do the trick but there is still a slim white border. Can anyone give me some advice...

<body>
<center><table style="cellspacing:0; width:400px; border:none;">
<?
echo "<tr><td> Team </td><td>Correct Picks</td><td>Points</td></tr>";
while($row = mysql_fetch_array($memberslist)) {
    if ($row['User_ID'] == $id) {
        echo "<tr bgcolor=\"gray\"><td>" . $row['User_ID'] . "</td><td><b>" . $row['Correct_Picks'] . " </b> /" . $maxcorrectpicks . "</td><td>" . $row['Points'] . "</td></tr>";
    } else {
        echo "<tr><td>" . $row['User_ID'] . "</td><td><b>" . $row['Correct_Picks'] . " </b> /" . $maxcorrectpicks . "</td><td>" . $row['Points'] . "</td></tr>";
}
}
?>
</table></center>

</body>
Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
John Doe
  • 1,950
  • 9
  • 32
  • 53

1 Answers1

0
cellspacing=0;

is no CSS. That was once a HTML attribute:

<table cellspacing="0" style="width:400px">

See as well the related (duplicate?) question:

Community
  • 1
  • 1
hakre
  • 193,403
  • 52
  • 435
  • 836