centered table within a table

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

I'm trying to create a table within a table. The inward table I would like
to be 1/2 inch around each side of the outer table. As it stand now it will
be wider on both sides but the top of the table is not the same size. I
would like to be able to have all four sides be equal.
 
Add a padding style to the cell of the outside table that contains the inside
table.

<table><tr><td style="padding: .5in;">
<table><tr><td>inside table content</td></tr></table>
</td></tr></table>
 
For the cell of the outer table, assign it a class -
..td_outer {padding: .5in}
and then the html would look like -
<table><tr><td class="td_outer">
the inside table and content
</td></tr></table>
 
Back
Top