I would simplify that a bit...
1. Simply override the border of the table with white (or whatever your background is)
2. Use the cascade to set the td's instead of repeating "class" for all of them.
3. Remove the height and width of your table - let the cells define that so you don't run into problems...
<html>
<head>
<style>
#grid
{
border: 1px solid #ffffff;
padding: 4px;
border-collapse:collapse;
}
#grid td
{
width: 75px;
height: 75px;
border: 2px solid #000000;
}
</style>
</head>
<body>
<table id="grid" cellspacing="0">
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
Sean
Main Topics
Browse All Topics





by: KupiPosted on 2004-10-09 at 15:50:39ID: 12268380
Is this what you mean?
<html>
<head>
<style>
#grid {
margin: 0px;
padding: 0px;
border: none;
border-collapse: collapse;
width: 225px;
height: 225px;
}
.cell {
margin: 0px;
padding: 0px;
border: 2px solid #000;
width: 75px;
height: 75px;
}
</style>
</head>
<body>
<table id="grid">
<tr>
<td class="cell" style="border-width: 0px 0px 2px 0px;"> </td>
<td class="cell" style="border-width: 0px 2px 2px 2px;"> </td>
<td class="cell" style="border-width: 0px 0px 2px 0px;"> </td>
</tr>
<tr>
<td class="cell" style="border-width: 0px 0px 2px 0px;"> </td>
<td class="cell" style="border-width: 0px 2px 2px 2px;"> </td>
<td class="cell" style="border-width: 0px 0px 2px 0px;"> </td>
</tr>
<tr>
<td class="cell" style="border-width: 0px 0px 0px 0px;"> </td>
<td class="cell" style="border-width: 0px 2px 0px 2px;"> </td>
<td class="cell" style="border-width: 0px 0px 0px 0px;"> </td>
</tr>
</table>
</body>
</html>