I have a simple problem I hope someone has a CSS solution for. I have a table with a width of 100% - no problems there. Inside that table I have a row with a text box:
FYI, the CSS class "textSubject" is defined as follow:
Now, there is no problem with this as it stands. The text box fills out to the width of the table it is contained in. The PROBLEM is if the VALUE of the input type text above is longer than the width of the table it is in.
For example, as you can see above the VALUE of the input type text is set to 'My Text' and there is no problem; however, if I were to sent the value to:
[tt]'My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text'[/tt]
Basically something really long, then IE renders the actual textbox (i.e. the input type text) to the width of ALL the text (i.e. 100% width)!! It doesn't just keep the width of the input type text to the width of the table its contained in and scroll the excess text like normal. In Mozilla there is no problem, only in IE. If I don't use a % width for the input type text then it's fine, but using a % width causes it to render ALL the text on the page; however, I want the width of the input type text to expand and shrik as the browser window is resized (i.e. I don't want a fixed width).
Does anyone have a work around for this?
Code:
<tr><td>
<input type='text' class='textSubject' name='subject' value='My Text'>
</td></tr>
FYI, the CSS class "textSubject" is defined as follow:
Code:
.textSubject {
width:100%;
}
Now, there is no problem with this as it stands. The text box fills out to the width of the table it is contained in. The PROBLEM is if the VALUE of the input type text above is longer than the width of the table it is in.
For example, as you can see above the VALUE of the input type text is set to 'My Text' and there is no problem; however, if I were to sent the value to:
[tt]'My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text My My Text My Text My Text My Text My Text My Text My Text My Text My Text My Text'[/tt]
Basically something really long, then IE renders the actual textbox (i.e. the input type text) to the width of ALL the text (i.e. 100% width)!! It doesn't just keep the width of the input type text to the width of the table its contained in and scroll the excess text like normal. In Mozilla there is no problem, only in IE. If I don't use a % width for the input type text then it's fine, but using a % width causes it to render ALL the text on the page; however, I want the width of the input type text to expand and shrik as the browser window is resized (i.e. I don't want a fixed width).
Does anyone have a work around for this?