PC Review


Reply
Thread Tools Rate Thread

centered table within a table

 
 
Mark
Guest
Posts: n/a
 
      29th Jan 2008
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.

 
Reply With Quote
 
 
 
 
Dan L
Guest
Posts: n/a
 
      29th Jan 2008
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>


"Mark" wrote:

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

 
Reply With Quote
 
Mark
Guest
Posts: n/a
 
      31st Jan 2008
okay thank you very much. This helps. But how do I incorporate that into a
css page?

"Dan L" <(E-Mail Removed)> wrote in message
news:42566058-DEA7-4E4C-B0B6-(E-Mail Removed)...
> 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>
>
>
> "Mark" wrote:
>
>> 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.
>>

 
Reply With Quote
 
Dan L
Guest
Posts: n/a
 
      31st Jan 2008
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>

"Mark" wrote:

> okay thank you very much. This helps. But how do I incorporate that into a
> css page?
>
> "Dan L" <(E-Mail Removed)> wrote in message
> news:42566058-DEA7-4E4C-B0B6-(E-Mail Removed)...
> > 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>
> >
> >
> > "Mark" wrote:
> >
> >> 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.
> >>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Grouping objects within a centered table matt_parrill Microsoft Frontpage 3 3rd Dec 2007 05:31 PM
Centered table not centered in "Normal" view =?Utf-8?B?TG9va25zZWU=?= Microsoft Frontpage 4 9th Apr 2007 01:27 AM
Table Cell not Centered Correctly (Too far left) Peter Reaper Windows XP Help 1 13th Jan 2005 12:42 PM
creating a centered table Jesse Hand Microsoft Frontpage 7 7th May 2004 03:21 AM
any way to use centered table in mac netscape? Catherine Jo Morgan Microsoft Frontpage 3 13th Aug 2003 04:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:13 PM.