Microsoft KB Archive/276400

= BUG: Keystroke Expands Width of a Relative Positioned TEXTAREA Element =

Article ID: 276400

Article Last Modified on 5/11/2006

-

APPLIES TO


 * Microsoft Internet Explorer 5.5

-



This article was previously published under Q276400



SYMPTOMS
In Internet Explorer 5.5, when you type inside a TEXTAREA element that is within a DIV element, you may notice on your first keystroke that the width increases by the amount of the containing DIV's padding-left attribute.



RESOLUTION
To work around this bug, set the style of the TEXTAREA element on the document to the absolute position.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce Behavior
  Create an HTML file, and paste the following code:   Document Title   

Type inside the TEXTAREA element. Notice that on your first keystroke, the width increases by the amount of the containing DIV's padding-left attribute.

<TEXTAREA STYLE=&quot;position: relative; width: 70%&quot;></TEXTAREA>

</DIV> </BODY> </HTML> </li> <li>In Internet Explorer 5.5, open the file, and type inside the TEXTAREA element. The TEXTAREA expands to 50 pixels.</li></ol>

<div class="references_section">