Forums

This topic is locked

Table Borders ??

Posted 09 Jan 2003 11:49:04
1
has voted
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
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 ?
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?

&lt;Html&gt;
&lt;head&gt;
&lt;title&gt;Table Test&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;table width="100%" border="0"&gt;
&lt;tr&gt;
&lt;td height="30" bgcolor="#CCCCCC"&gt;
&lt;table width="100%" border="0" bgcolor="#CCCCCC"&gt;
&lt;tr&gt;
&lt;td&gt; &lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td height="30" bgcolor="#CCCCCC"&gt;
&lt;table width="100%" height="30" border="0" bgcolor="#CCCCCC"&gt;
&lt;tr&gt;
&lt;td height="30"&gt; &lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;td&gt; &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Reply to this topic