You are here: hot to align inner table cols with outer table cols « HTML « IT news, forums, messages
hot to align inner table cols with outer table cols

Posted by phl on 02/02/86 11:48

hi,

I have data which I display in a table with 5 columns, some of this
data needs to be collapsable, so user can hide it if they wish. I am
trying to do this with a main table of 5 columns for none collapsable
data and inner tables of the same demensions for collapasable items,
with is displayed or hiddened depending what user selects, using
jscript. The html would look like this:

<table border="1" id="table1">
<tr>
<td style="width: 400px">hello</td>
<td>world</td>
</tr>
<tr>
<td colspan="2">
<table border="1" id="table2">
<tr align="left">
<td style="width: 400px">hello new</td>
<td>world</td>
</tr>
</table>
</td>
</tr>
</table>

The problem is with this layout the inner table is shifted a little to
the right, hence the columns of the inner and outer table aren't
matching properly.

Can anyone help or provide alternative method?

Thanks
-phl

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация