Results 1 to 2 of 2

Thread: Dynamically enlarging tables

  1. #1
    Join Date
    Feb 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dynamically enlarging tables

    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>

  2. #2
    Join Date
    May 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Try to change: ... style="max-height: 100;"... to height="100" for the <td> you need to have fixed height
    It should do it

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •