John Chrisman
2005-12-29 15:47:45 UTC
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>
<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>