sizing of text box width for form with css

sizing of text box width for form with css

Post by Tim » Sat, 15 Nov 2003 07:36:46

Is this regarded as being something that should be done as per specs...

Ive been looking but cannot find anything on it with regards to using a
relative width for a parent div element

I currently have a form the prefilled with text half the size of the screen
then the text box boundaries are actually going way off the screen

I tried multiplying the amount of text it was prefilled with and found that
now the text box grows to sufficient to display the entire thing without the
normal moving the cursor to the right to scroll through it.

this doesnt seem to happen if the form element is outside of a table cell,
but I need to have the cells there for the labels of the entry box

the code is as follows

<form action="" method="post" style="margin-left:100px;margin-right:100px">
<label for="tag">Tag/Header</label>
<input type="text" id="tag" name="tag" value="A test to see how much
information the text box can handle and whether it uses the scroll as I
would assume it should and not extend the text box beyond what is
acceptable" maxlength="50" style="width:100%" />

its pretty simple, the text is just overly long to prove the point

there need to be 100px borders to the left and right of the text box for
menus.. other than that... Im stuck for working the thing into a table ;o(

In particular this happens with IE, both 5.5 and 6

Any help would be appreciated


sizing of text box width for form with css

Post by CJM » Sat, 06 Dec 2003 02:32:15

Can you post a link?