|
The easiest way I found to lay out a table spanning Columns and Rows is to make a table with as many columns and rows as you need, add the required rowspan= and / or colspan= to the <td> tag you want to span, and erase the cells you want to eliminate, including <td> and </td>. Lets say you want 3 columns and 3 rows. Notice I assigned each cell a number, that makes it easier to identify each cell. You can erase the number and insert your own text or picture. You can also insert another table inside the cell. I set the width to use 50% of the screen, you can make them as wide as you need. You can also change the background color and thickness of the border. <center> <table border=2 width=50% cellspacing=5 cellpadding=8 bgcolor=cyan cols=3> <tr><td>one</td><td>two</td><td>three</td></tr> <tr><td>four</td><td>five</td><td>six</td></tr> <tr><td>seven</td><td>eight</td><td>nine</td></tr> </table></center>
<center> <table border=2 width=50% cellspacing=5 cellpadding=8 bgcolor=cyan cols=3> <tr><td colspan=3>one</td></tr> <tr><td>four</td><td>five</td><td>six</td></tr> <tr><td>seven</td><td>eight</td><td>nine</td></tr> </table></center>
<center> <table border=2 width=50% cellspacing=5 cellpadding=8 bgcolor=cyan cols=3> <tr><td rowspan=3>one</td><td>two</td><td>three</td></tr> <tr> <td>five</td><td>six</td></tr> <tr> <td>eight</td><td>nine</td></tr> </table></center>
<center> <table border=2 width=70% cellspacing=5 cellpadding=8 bgcolor=cyan cols=4> <tr><td>1A</td><td>2A</td><td>3A</td><td>4A</td></tr> <tr><td>1B</td><td>2B</td><td>3B</td><td>4B</td></tr> <tr><td>1C</td><td>2C</td><td>3C</td><td>4C</td></tr> <tr><td>1D</td><td>2D</td><td>3D</td><td>4D</td></tr> </table></center>
<center> <table border=2 width=70% cellspacing=5 cellpadding=8 bgcolor=cyan cols=4> <tr><td>1A</td><td colspan=2>2A</td> <td>4A</td></tr> <tr><td>1B</td><td>2B</td><td>3B</td><td>4B</td></tr> <tr><td>1C</td><td>2C</td><td>3C</td><td>4C</td></tr> <tr><td>1D</td><td>2D</td><td>3D</td><td>4D</td></tr> </table></center>
<td>1B</td> <td>1C</td> <td>1D</td> <center> <table border=2 width=70% cellspacing=5 cellpadding=8 bgcolor=cyan cols=4> <tr><td rowspan=4>1A</td><td colspan=2>2A</td> <td>4A</td></tr> <tr> <td>2B</td><td>3B</td><td>4B</td></tr> <tr> <td>2C</td><td>3C</td><td>4C</td></tr> <tr> <td>2D</td><td>3D</td><td>4D</td></tr> </table></center>
<td>3B</td> <td>2C</td><td>3C</td> <center>
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||