Force table row to fixed height

Discussion in 'HTML' started by DC, Sep 20, 2006.

  1. DC

    DC Guest

    Hi,

    I want to force a table row to always use the exact same height, even
    if some data in a cell may produce additional lines which would
    normally cause the row to heighten. Instead I want this cell to be
    furnished with scrollbars (or the excessive data should simply vanish
    under the lower border of the cell) if there are additional lines.

    Is that doable? TIA for any hint on this!

    Regards
    DC
    DC, Sep 20, 2006
    #1
    1. Advertising

  2. DC

    richard Guest

    "DC" <> wrote in message
    news:...
    > Hi,
    >
    > I want to force a table row to always use the exact same height, even
    > if some data in a cell may produce additional lines which would
    > normally cause the row to heighten. Instead I want this cell to be
    > furnished with scrollbars (or the excessive data should simply vanish
    > under the lower border of the cell) if there are additional lines.
    >
    > Is that doable? TIA for any hint on this!
    >
    > Regards
    > DC
    >


    Hint: Search for "auto scroll".
    richard, Sep 21, 2006
    #2
    1. Advertising

  3. DC

    DC Guest

    Thank you, that helped. Since I also wanted the text to be centered
    vertically, I ended up with something like this:

    <td>
    <div style="width:100%;height:39px;overflow:auto">
    <table style="width:100%;height:100%">
    <tr>
    <td valign="center" style="overflow:auto;">
    <span>This text could be long and it is not supposed to heighten
    the row</span>
    </td>
    </tr>
    </table>
    </div>
    </td>

    richard wrote:
    > "DC" <> wrote in message
    > news:...
    > > Hi,
    > >
    > > I want to force a table row to always use the exact same height, even
    > > if some data in a cell may produce additional lines which would
    > > normally cause the row to heighten. Instead I want this cell to be
    > > furnished with scrollbars (or the excessive data should simply vanish
    > > under the lower border of the cell) if there are additional lines.
    > >
    > > Is that doable? TIA for any hint on this!
    > >
    > > Regards
    > > DC
    > >

    >
    > Hint: Search for "auto scroll".
    DC, Sep 22, 2006
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. shank

    force table height 100%

    shank, Apr 24, 2004, in forum: HTML
    Replies:
    6
    Views:
    12,626
    Barry Pearson
    Apr 29, 2004
  2. phl
    Replies:
    1
    Views:
    4,328
    Martin Jay
    Jun 8, 2006
  3. Nathan Sokalski
    Replies:
    12
    Views:
    1,928
    rob^_^
    Oct 2, 2009
  4. Greg Smith

    GridView - fixed row height

    Greg Smith, Oct 3, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    3
    Views:
    1,464
    cloudoversea
    Dec 14, 2006
  5. Greg Smith

    GridView - Fixed row height

    Greg Smith, Oct 3, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    181
    Greg Smith
    Oct 3, 2006
Loading...

Share This Page