Log in

View Full Version : Dynamically enlarging tables



joinjiji
02-03-2006, 12:38 PM
Hi,

One of a cell in my table spans two rows.
This cells gets dynamic content from a form.
If a huge value is entered in this cell, the rows should behave like this.

one of the two rows must have fixed height
other row can be expanded based on the size of the cell

My code is pasted below.
can solve this. If yes, thanks in advance.


<tr>
<table style="word-break: break-all; table-layout: fixed;width:646; border-top-style: none; border-bottom-style: none;" width="100%" cellpadding="1" cellspacing="0" border="1" bordercolor="#000000">

<tr>
<td class="formItem_en" align="center" rowspan="2" width="76" bgcolor="#E5E5E5">Change<br> Reason <br>
(Defect <br>Pheno<br>-menon)
</td>
<td class="formItem_en" valign="top" align="left" rowspan="2">
bla.. bla.. bla.. bla.. bla.. bla.. bla.. bla..
bla.. bla.. bla.. bla.. bla.. bla.. bla.. bla..
bla.. bla.. bla.. bla.. bla.. bla..
bla.. bla.. bla.. bla.. bla.. bla..
bla.. bla.. bla.. bla.. bla.. bla.. bla.. bla..
bla.. bla.. bla.. bla.. bla.. bla..
<br /><br />
</td>
<td class="formItem_en" align="center" width="60" style="max-height: 100;" bgcolor="#E5E5E5">Motive</td>
<td valign="top" align="left" width="130" style="max-height: 100;">
&nbsp;1.Add/Improve<br />
&nbsp;2. Defect<br />
&nbsp;3. Failure in QA<br />
&nbsp;4. Defect(External)<br />
&nbsp;5. Specchanged<br />
&nbsp;6. Other<br/>&nbsp;&nbsp;&nbsp;&nbsp;Number(&nbsp;&nbsp;&nbsp;&nbsp;)
</td>
</tr>

<tr>
<td class="formItem_en" align="center" width="60" style="min-height: 100;" bgcolor="#E5E5E5">
SNL<br> or <br>SSN<br> need
</td>
<td valign="top" align="left" width="130" style="min-height: 100;" >
&nbsp;(1). Yes (SNL/SSN)<br />
&nbsp;2. No<br />&nbsp;Reason : <br />
&nbsp;
<font style="font-family:Courier New; size:9pt;">hhjhj</font>
</td>
</tr>

</table>
</tr>

TMPS
02-05-2006, 02:59 AM
Try to change: ... style="max-height: 100;"... to height="100" for the <td> you need to have fixed height
It should do it