Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with setting text input to 100% width

0 views
Skip to first unread message

John Chrisman

unread,
Dec 29, 2005, 10:47:45 AM12/29/05
to
How can I get this textbox to 100% the width of the containing block in IE?

<html>
<head></head>
<body>
<form>
<table width="640px">
<tr>
<td><input type="text" style="width: 100%" value="This is an extremely
long block of text that is designed to overflow the text box. For some
reason the width of this text box will be 100% of what is required to
display all of the text rather than 100% of the width of the tables
container. I don't want the stupid scroll bars to appear at the bottom, I
simply want the form field to be the width of the screen."></td>
</tr>
</table>
</form>
</body>
</html>


McKirahan

unread,
Dec 29, 2005, 11:18:15 AM12/29/05
to
"John Chrisman" <j.chr...@comcast.net> wrote in message
news:j5qdneOZFoy...@comcast.com...

This works: style="width: 640px"


John Chrisman

unread,
Dec 29, 2005, 11:24:19 AM12/29/05
to
It doesn't work for me. I'm using IE 6.0. Changing the table to use style
instead of width has no effect on the way it is displayed.

"McKirahan" <Ne...@McKirahan.com> wrote in message
news:ObOdnY83wve...@comcast.com...

McKirahan

unread,
Dec 29, 2005, 12:25:39 PM12/29/05
to
"John Chrisman" <j.chr...@comcast.net> wrote in message
news:y7ydnVf2yowqkCne...@comcast.com...

I didn't suggest "Changing the table to use style instead of width".

I suggested that you replace:
<input type="text" style="width: 100%" value="...">
with
<input type="text" style="width: 640px" value="...">
though apparently it wasn't obvious.


0 new messages