Textbox to have a minimun height but be able to fill the cell if there is additional room

Discussion in 'ASP .Net' started by AAaron123, Jul 25, 2008.

  1. AAaron123

    AAaron123 Guest

    I have a asp.table.
    The table is in a master
    One of the cells contains a text box.
    I fix the box's height.
    When the page opens depending on what is in the other cells the box may
    determine the row height because it is the tallest in the row.
    That works great.

    However if other cells in the row are taller than the box there is wasted
    space under the box. That is, the box would still fit if it were taller.

    What I'd like is for the box to have a minimum height but be able to fill
    the cell if there is additional room.

    Is that possible?
     
    AAaron123, Jul 25, 2008
    #1
    1. Advertising

  2. > What I'd like is for the box to have a minimum height but be able to fill
    > the cell if there is additional room.


    No. The CSS attributes cannot be conditional.

    You may, however, wish to specify the box's height as 100% and the font-size
    as something like 14px or the like.


    --
    Happy Hacking,
    Gaurav Vaish | http://dwt.sourceforge.net
    http://blogs.mastergaurav.com | http://eduzine.edujini-labs.com
    --------------------------------
     
    Gaurav Vaish \(a.k.a. MasterGaurav\), Jul 27, 2008
    #2
    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. Nevets Steprock
    Replies:
    10
    Views:
    706
    Nevets Steprock
    Jun 14, 2005
  2. Replies:
    0
    Views:
    570
  3. tshad
    Replies:
    1
    Views:
    1,716
    bruce barker
    Mar 8, 2007
  4. JC

    textbox height = containing cell height - x

    JC, Jul 29, 2004, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    197
    DujHoD
    Aug 2, 2004
  5. Replies:
    2
    Views:
    255
    Thomas 'PointedEars' Lahn
    Aug 5, 2008
Loading...

Share This Page