% width text box making container bigger bug?

  • Thread starter Thread starter AndrewF
  • Start date Start date
A

AndrewF

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
 
...
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
 
Back
Top