|
|
| Subject: Table Within Table Question · Posted: 2004-04-21, 06:02am |
|
|
|
Rank: ? (1200)
Member #: 12930
|
Ok see this code
Code:
<table width="300" cellpadding="2" cellspacing="0" border="0"
- style="border-top: 1px solid rgb(0, 0, 0); border-left: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0);">
- <tr>
- <td width="100%" bgcolor="#FF9933" align="center">Possible Answers</td>
- </tr>
-
-
-
- <table width="300" cellpadding="2" cellspacing="0" border="0"
- style="border-left: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); border-bottom: 1px solid rgb(0, 0, 0);">
- <tr>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0);" bgcolor="#FF9933"></td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">1</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">2</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">3</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">4</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">5</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">6</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">7</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">8</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">9</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">10</td>
- <td width="8.3333333333333333333333333333333%" align="center" bgcolor="#FF9933"></td>
- </tr><tr>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0);" bgcolor="#FF9933"></td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">11</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">12</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">13</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">14</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">15</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">16</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">17</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">18</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">19</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">20</td>
- <td width="8.3333333333333333333333333333333%" align="center" bgcolor="#FF9933"></td>
- </tr><tr>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0);" bgcolor="#FF9933"></td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">21</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">22</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">23</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">24</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">25</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">26</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">27</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">28</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">29</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">30</td>
- <td width="8.3333333333333333333333333333333%" align="center" bgcolor="#FF9933"></td>
- </tr></table>
-
- <tr>
- <td width="100%" bgcolor="#FF9933" align="center"><font color="#FF9933">Possible Answers</font></td>
- </tr>
- </table>
The first table makes a orange color field over all the other tds. Second table makes the tds in. Now, when I close the table, the first table must be closed and so when I use the <tr> that should work with the first table. But for some reasons, when I close the </table> all the tables are closed. Why? See the page:
http://www.blueblumaroo.net/merderia/games/random_merdon/index.php?dif=easy
|
|
|
| Subject: Re: Table Within Table Question · Posted: 2004-04-21, 07:19am |
|
|
|
Rank: ? (4827)
Member #: 3416
|
you can't put <table> directly inside another <table>. what you need to do is put the table that's inside in a cell in the first table, so just put <tr><td> in front of <table for the inner table, and put </td></tr> after the </table> for the inner table.
my mind is like a steel trap! it only hangs on to the big stuff. visit my forums at track7.org
|
|
|
| Subject: Re: Table Within Table Question · Posted: 2004-04-21, 07:54am |
|
|
|
Rank: ? (1200)
Member #: 12930
|
ok, I fixed it, now there is another problem:
Code:
<table width="300" cellpadding="0" cellspacing="0" border="0"
- style="border-top: 1px solid rgb(0, 0, 0); border-left: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); border-buttom: 1px solid rgb(0, 0, 0);">
- <tr>
- <td width="100%" bgcolor="#FF9933" align="center">Possible Answers</td>
- </tr>
- <tr>
- <td>
-
- <table width="300" cellpadding="0" cellspacing="0" border="0">
- <tr>
- <td width="8.3333333333333333333333333333333%" align="center" style="" bgcolor="#FF9933"></td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0); border-left: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">1</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">2</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">3</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">4</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">5</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">6</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">7</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">8</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">9</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">10</td>
- <td width="8.3333333333333333333333333333333%" align="center" bgcolor="#FF9933"></td>
- </tr><tr>
- <td width="8.3333333333333333333333333333333%" align="center" style="" bgcolor="#FF9933"></td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0); border-left: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">11</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">12</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">13</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">14</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">15</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">16</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">17</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">18</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">19</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">20</td>
- <td width="8.3333333333333333333333333333333%" align="center" bgcolor="#FF9933"></td>
- </tr><tr>
- <td width="8.3333333333333333333333333333333%" align="center" style="" bgcolor="#FF9933"></td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0); border-left: 1px solid rgb(0, 0, 0); border-buttom: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">21</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0); border-buttom: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">22</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0); border-buttom: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">23</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0); border-buttom: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">24</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0); border-buttom: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">25</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0); border-buttom: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">26</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0); border-buttom: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">27</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0); border-buttom: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">28</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0); border-buttom: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">29</td>
- <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0); border-buttom: 1px solid rgb(0, 0, 0);" bgcolor="#FFFF33">30</td>
- <td width="8.3333333333333333333333333333333%" align="center" bgcolor="#FF9933"></td>
- </tr></table>
- </td>
- </tr>
- <tr>
- <td width="100%" bgcolor="#FF9933" align="center" style="border-buttom: 1px solid rgb(0, 0, 0);"><font color="#FF9933">P</font></td>
- </tr>
- </table>
Goto
http://www.blueblumaroo.net/merderia/games/random_merdon/index.php?dif=easy
see at the buttom of the table, there is no border. Also there is no border at the buttom of box numbers 21-30. Why?
|
|
|
| Subject: Re: Table Within Table Question · Posted: 2004-04-21, 08:14am |
|
|
|
Rank: ? (4827)
Member #: 3416
|
you only told it to put borders on top, left, and right:
style="border-top: 1px solid rgb(0, 0, 0); border-left: 1px solid rgb(0, 0, 0); border-right: 1px solid rgb(0, 0, 0); border-buttom: 1px solid rgb(0, 0, 0);"
this is on the orange table--just change buttom to bottom
style="border-right: 1px solid rgb(0, 0, 0); border-top: 1px solid rgb(0, 0, 0); border-left: 1px solid rgb(0, 0, 0);"
this is one of the cells from the yellow table. it doesn't say bottom or buttom.
for both cases you could just specify the border as style="border: 1px solid rgb(0, 0, 0);" rather than listing each side separately.
my mind is like a steel trap! it only hangs on to the big stuff. visit my forums at track7.org
|
|
|
| Subject: Re: Table Within Table Question · Posted: 2004-04-21, 08:53am |
|
|
|
Rank: ? (1200)
Member #: 12930
|
What do you mean? Where? I've checked it and it has even more than one border for buttom, so it should have a thick border.
|