PDA

View Full Version : Why no border?



trenzterra
October 31st, 2002, 10:23
What's wrong with this piece of code?

<table border="0" cellpadding="0" cellspacing="0" width="50%" bgcolor="black" align="center"><tr><td>
<TABLE border="0" cellpadding="0" cellspacing="1" width="100%" align="center" bgcolor="white"><tr><td>
<font size="2" face="arial">
<p><font size="4"><b><center>Chapter 1: How it all started</center></b></font></p>
<p>I remember one day decades ago, where terrorism first occured... on September 11th 2001.</p>
<p>Many events happened that day, the crashing of the twin towers of the World Trade Center, the hijackers, the mastermind and much more.</p>
<br><br>
<p>Written on the 26th of October, 2002</p>
</font></td></tr></table></td></tr></table>



I can't seem to get a border on the outside.

Chroder
October 31st, 2002, 12:41
Mabe you should try "border=1" in stead of 0

Ashed
October 31st, 2002, 15:57
You set the cellspacing for the outer table, not the inner one.

aphel aura
October 31st, 2002, 17:48
Set the bold attribute to 1 (or whatever how large you want your border to be).

<table border="0" cellpadding="0" cellspacing="0" width="50%" bgcolor="black" align="center"><tr><td>
<TABLE border="0" cellpadding="0" cellspacing="1" width="100%" align="center" bgcolor="white"><tr><td>
<font size="2" face="arial">
<p><font size="4"><b><center>Chapter 1: How it all started</center></b></font></p>
<p>I remember one day decades ago, where terrorism first occured... on September 11th 2001.</p>
<p>Many events happened that day, the crashing of the twin towers of the World Trade Center, the hijackers, the mastermind and much more.</p>
<br><br>
<p>Written on the 26th of October, 2002</p>
</font></td></tr></table></td></tr></table>

merickson
October 31st, 2002, 17:48
If you want a border around the inner (capitalized) TABLE, you need to set the cellpadding of the outer table to >0.
Cellspacing will change the spacing between the cells of a table. Since your tables have only one cell there is no "between" to adjust.

trenzterra
October 31st, 2002, 20:57
i figured it out the bgcolor must be in the td.