HTML - Table within tables

Soldato
Joined
26 May 2006
Posts
6,212
Location
Edinburgh
I am having trouble creating a table within a table.

What I would like is 3 different tables all on the same horizontal line. There should also be a space between tables also.

table1

table heading = Monday spanning 2 columns
table column1 = Time
table column2 = Allocation

table2

table heading = Tuesday spanning 2 columns
table column1 = Time
table column2 = Allocation

Table3

same as above but for Wednesday.


I have been looking online but everything I do just puts the 2nd table below the first one, instead of being next to it and also creating a space between them.

Any help on this would be great.
 
Need to nest the tables like so:

Code:
<table>
  <tr>
    <td>
      <table>
        <tr>
          <td></td>
        </tr>
      </table>
    </td>
    <td>
      <table>
        <tr>
          <td></td>
        </tr>
      </table>
    </td>
  </tr>
<table>

I noticed you haven't used the <th> tag anywhere, is it not possible to use this and keep the tables going across properly?
 
Back
Top Bottom