Free2Code
The majority of forums are now only available as archives, which means posting/editing is disabled.

The Anything and Everything forum is still open.
 
Time: 2013-05-25, 06:35am
Table Within Table Question
Subject: Table Within Table Question  ·  Posted: 2004-04-21, 06:02am
Rank: ? (1200)
Member #: 12930
Ok see this code

Code:
  1. <table width="300" cellpadding="2" cellspacing="0" border="0"
  2. 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);">
  3. <tr>
  4. <td width="100%" bgcolor="#FF9933" align="center">Possible Answers</td>
  5. </tr>
  6.   
  7.   
  8.   
  9. <table width="300" cellpadding="2" cellspacing="0" border="0"
  10. 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);">
  11. <tr>
  12. <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0);" bgcolor="#FF9933"></td>
  13. <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>
  14. <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>
  15. <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>
  16. <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>
  17. <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>
  18. <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>
  19. <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>
  20. <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>
  21. <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>
  22. <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>
  23. <td width="8.3333333333333333333333333333333%" align="center" bgcolor="#FF9933"></td>
  24. </tr><tr>
  25. <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0);" bgcolor="#FF9933"></td>
  26. <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>
  27. <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>
  28. <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>
  29. <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>
  30. <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>
  31. <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>
  32. <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>
  33. <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>
  34. <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>
  35. <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>
  36. <td width="8.3333333333333333333333333333333%" align="center" bgcolor="#FF9933"></td>
  37. </tr><tr>
  38. <td width="8.3333333333333333333333333333333%" align="center" style="border-right: 1px solid rgb(0, 0, 0);" bgcolor="#FF9933"></td>
  39. <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>
  40. <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>
  41. <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>
  42. <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>
  43. <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>
  44. <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>
  45. <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>
  46. <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>
  47. <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>
  48. <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>
  49. <td width="8.3333333333333333333333333333333%" align="center" bgcolor="#FF9933"></td>
  50. </tr></table>
  51. <tr>
  52. <td width="100%" bgcolor="#FF9933" align="center"><font color="#FF9933">Possible Answers</font></td>
  53. </tr>
  54. </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




So... How is life?
 
  Reply to this ·  Post link ·  Top
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
 
  Reply to this ·  Post link ·  Top
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:
  1. <table width="300" cellpadding="0" cellspacing="0" border="0"
  2. 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);">
  3. <tr>
  4. <td width="100%" bgcolor="#FF9933" align="center">Possible Answers</td>
  5. </tr>
  6. <tr>
  7. <td>
  8.    
  9. <table width="300" cellpadding="0" cellspacing="0" border="0">
  10. <tr>
  11. <td width="8.3333333333333333333333333333333%" align="center" style="" bgcolor="#FF9933"></td>
  12. <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>
  13. <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>
  14. <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>
  15. <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>
  16. <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>
  17. <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>
  18. <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>
  19. <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>
  20. <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>
  21. <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>
  22. <td width="8.3333333333333333333333333333333%" align="center" bgcolor="#FF9933"></td>
  23. </tr><tr>
  24. <td width="8.3333333333333333333333333333333%" align="center" style="" bgcolor="#FF9933"></td>
  25. <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>
  26. <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>
  27. <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>
  28. <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>
  29. <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>
  30. <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>
  31. <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>
  32. <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>
  33. <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>
  34. <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>
  35. <td width="8.3333333333333333333333333333333%" align="center" bgcolor="#FF9933"></td>
  36. </tr><tr>
  37. <td width="8.3333333333333333333333333333333%" align="center" style="" bgcolor="#FF9933"></td>
  38. <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>
  39. <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>
  40. <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>
  41. <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>
  42. <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>
  43. <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>
  44. <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>
  45. <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>
  46. <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>
  47. <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>
  48. <td width="8.3333333333333333333333333333333%" align="center" bgcolor="#FF9933"></td>
  49. </tr></table>
  50. </td>
  51. </tr>
  52. <tr>
  53. <td width="100%" bgcolor="#FF9933" align="center" style="border-buttom: 1px solid rgb(0, 0, 0);"><font color="#FF9933">P</font></td>
  54. </tr>
  55. </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?

So... How is life?
 
  Reply to this ·  Post link ·  Top
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
 
  Reply to this ·  Post link ·  Top
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.

So... How is life?
 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.

Penguino AVR

Want to learn about robotics or microcontrollers?
Check out the Penguino AVR from our friends at
Icy Labs