Forums
This topic is locked
Table Borders ??
09 Jan 2003 11:49:04 J P posted:
Why does the following code have a white gap between the two main table rows??I'm using DW MX
Table outline in DWMX shows 'tram lines' - is this the problem?
<Html>
<head>
<title>Table Test</title>
</head>
<body>
<table width="100%" border="0">
<tr>
<td height="30" bgcolor="#CCCCCC">
<table width="100%" border="0" bgcolor="#CCCCCC">
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="30" bgcolor="#CCCCCC">
<table width="100%" height="30" border="0" bgcolor="#CCCCCC">
<tr>
<td height="30"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
Replies
Replied 09 Jan 2003 12:10:25
09 Jan 2003 12:10:25 Martha Graham replied:
Add cellspacing and cellpadding to the table.
<table width="100%" border="0" cellspacing="0" cellpadding="0">
Martha Graham
<table width="100%" border="0" cellspacing="0" cellpadding="0">
Martha Graham
Replied 09 Jan 2003 12:30:35
09 Jan 2003 12:30:35 J P replied:
Thanks, That fixed my problem.
Can DW MX be set up so that each time I create a table it puts these in as a default ?
Can DW MX be set up so that each time I create a table it puts these in as a default ?
Replied 09 Jan 2003 22:09:08
09 Jan 2003 22:09:08 james smolich replied:
Try removing these lines: bgcolor="#CCCCCC"
also, you have tables within tables here. If you just want one table with two rows, you may consider using this code
<table cellspacing="2" cellpadding="2" border="0">
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
</table>
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Why does the following code have a white gap between the two main table rows??
I'm using DW MX
Table outline in DWMX shows 'tram lines' - is this the problem?
<Html>
<head>
<title>Table Test</title>
</head>
<body>
<table width="100%" border="0">
<tr>
<td height="30" bgcolor="#CCCCCC">
<table width="100%" border="0" bgcolor="#CCCCCC">
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="30" bgcolor="#CCCCCC">
<table width="100%" height="30" border="0" bgcolor="#CCCCCC">
<tr>
<td height="30"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
also, you have tables within tables here. If you just want one table with two rows, you may consider using this code
<table cellspacing="2" cellpadding="2" border="0">
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
</table>
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Why does the following code have a white gap between the two main table rows??
I'm using DW MX
Table outline in DWMX shows 'tram lines' - is this the problem?
<Html>
<head>
<title>Table Test</title>
</head>
<body>
<table width="100%" border="0">
<tr>
<td height="30" bgcolor="#CCCCCC">
<table width="100%" border="0" bgcolor="#CCCCCC">
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="30" bgcolor="#CCCCCC">
<table width="100%" height="30" border="0" bgcolor="#CCCCCC">
<tr>
<td height="30"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>