MMDT1021 Chapter 14 Notes - page 7

Tables Within Tables

Outside
Row 1 Column 1
Outside
Row 1 Column 2
Outside
Row 1 Column 3
Outside
Row 2 Column 1
Inside
Row 1 Column 1
Inside
Row 1 Column 2
Inside
Row 2 Column 2
Inside
Row 2 Column 2
Outside
Row 2 Column 3

 

<table border="4" cellpadding="0" cellspacing="0" width="650" bordercolor="#000080">
    <tr>
        <td width="25%">Outside<br />
        Row 1 Column 1</td>
        <td width="50%">Outside<br />
        Row 1 Column 2</td>
        <td width="25%">Outside<br />
        Row 1 Column 3</td>
    </tr>
    <tr>
        <td width="25%">Outside<br />
        Row 2 Column 1</td>
        <td width="50%">
        <table border="2" cellpadding="0" cellspacing="0" width="100%" bordercolor="#008000" >
            <tr>
                <td>Inside<br />
                Row 1 Column 1</td>
                <td>Inside<br />
                Row 1 Column 2</td>
            </tr>
            <tr>
                <td>Inside<br />
                Row 2 Column 2</td>
                <td>Inside<br />
                Row 2 Column 2</td>
            </tr>
        </table>
        </td>
        <td width="25%">Outside<br />
        Row 2 Column 3</td>
    </tr>
</table>