Tabele cz. 6

Czy możemy włożyć tabelę do wewnętrza tabeli?

Spróbujmy. Rozpoczynamy od prostej tabeli z Piotrem.

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

Dla przejrzystości pracy, powiększmy ją.

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

Zastąpmy Piotra kompletną, wewnętrzną "małą" tabelą z Piotrem.

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

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

</td>
</tr>
</table>
Piotr

Działa!

Naszą tabelę łatwo można wycentrować.

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

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

</td>
</tr>
</table>
</center>
Piotr