% width text box making container bigger bug?

Discussion in 'ASP .Net' started by AndrewF, Jul 8, 2006.

  1. AndrewF

    AndrewF Guest

    Hi all,

    I've been trying to google this bug for a few hours and haven't turned
    up anything which leads me to believe the way I'm framing the question
    is the way someone else has.

    Anyway hopefully someone can help.

    Basically I have a table on a web form that is being created
    dynamically with a set of fields being rendered programatically down
    the page.

    Essentially two columns:

    ----------------------------------------------------------------------------
    Fieldname | Field
    ----------------------------------------------------------------------------
    Fieldname | Field
    ----------------------------------------------------------------------------

    Etc all the way down.

    The fields are a mix of single line text boxes, multi-line text boxes
    and drop down lists.

    Everything works completely fine programmatically and build wise except
    when there is a single line text box [width set to 80% of the table
    cell it sits in] and the text is too long to fit in the box and thus
    goes invisible [out the end of the field where you'd need to cursor to
    see it] - it then seems to push the containing Table Cell out by the
    requisite amount as well.

    On quite long things [particualrly a field which contains a URL] they
    are creating the situation where the cell is maybe 50% again the width
    of the screen thus shifting everything out proportionately because I
    use a fluid design rather than fixed to accomodate different sized
    screens.

    I've tried commanding it to a fixed width [no good], setting a style
    [no good], adding attributes in code [no good] - in fact nothing seems
    to fix the problem.

    Has anyone come across this before and if so, how do you fix it?

    Kindest regards
    AndrewF
    AndrewF, Jul 8, 2006
    #1
    1. Advertising

  2. AndrewF

    Rob Meade Guest

    "AndrewF" wrote ...

    > Everything works completely fine programmatically and build wise except
    > when there is a single line text box [width set to 80% of the table
    > cell it sits in] and the text is too long to fit in the box and thus
    > goes invisible [out the end of the field where you'd need to cursor to
    > see it] - it then seems to push the containing Table Cell out by the
    > requisite amount as well.


    > Has anyone come across this before and if so, how do you fix it?


    Not the pushing out of the containing cell, but then I wouldn't use a %
    width on an element anyway...can you post up the HTML output from a
    view-source for that table only which contains the cell in question...

    Regards

    Rob
    Rob Meade, Jul 8, 2006
    #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. cjl
    Replies:
    1
    Views:
    10,489
    Michael Winter
    Oct 31, 2005
  2. Coder
    Replies:
    1
    Views:
    681
    Cowboy \(Gregory A. Beamer\)
    Jun 24, 2006
  3. Replies:
    2
    Views:
    767
    Filip Larsen
    Apr 10, 2007
  4. Yannick Turgeon

    App getting bigger and bigger

    Yannick Turgeon, Oct 13, 2003, in forum: Perl Misc
    Replies:
    1
    Views:
    130
    Yannick Turgeon
    Oct 14, 2003
  5. cjl
    Replies:
    7
    Views:
    168
    Thomas 'PointedEars' Lahn
    Oct 30, 2005
Loading...

Share This Page