Table Tutor - Lesson 15

Can we have a table within a table?

Let's try. Start with little Ed.

 
<table border="3">
<tr>
<td>Ed</td>
</tr>
</table>

Ed


Make the table a fuzz bigger.

 
<table border="3" width="200" height="100">
<tr>
<td>Ed</td>
</tr>
</table>

Ed


Replace Ed with a complete "little Ed" table

 
<table border="3" width="200" height="100">
<tr>
<td>
 
<table border="3">
<tr>
<td>Ed</td>
</tr>
</table>
 
</td>
</tr>
</table>

Ed

Well, howa bout that!


We can center our table...

 
<table border="3" width="200" height="100" align="center">
<tr>
<td>
 
<table border="3">
<tr>
<td>Ed</td>
</tr>
</table>
 
</td>
</tr>
</table>

Ed


And we can center the table within the table...

 
<table border="3" width="200" height="100" align="center">
<tr>
<td align="center">
 
<table border="3">
<tr>
<td>Ed</td>
</tr>
</table>
 
</td>
</tr>
</table>

Ed

<< BACK NEXT >>