centered table within a table

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.
 
D

Dan L

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>
 
D

Dan L

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top