Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

BUG: Keystroke Expands Width of a Relative Positioned TEXTAREA Element


View products that this article applies to.

This article was previously published under Q276400

↑ Back to the top


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.

↑ Back to the top


Resolution

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

↑ Back to the top


Status

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

↑ Back to the top


More information

Steps to Reproduce Behavior

  1. Create an HTML file, and paste the following code:
    <HTML>
      <HEAD>
        <TITLE>Document Title</TITLE>
      </HEAD>
      <BODY>
        <DIV STYLE="padding-left: 50px">
    
          <P>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.</P>
    
          <TEXTAREA STYLE="position: relative; width: 70%"></TEXTAREA>
    
        </DIV>
      </BODY>
    </HTML>
    					
  2. In Internet Explorer 5.5, open the file, and type inside the TEXTAREA element. The TEXTAREA expands to 50 pixels.

↑ Back to the top


References

For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:

↑ Back to the top


Keywords: KB276400, kbpending, kbdhtml, kbbug

↑ Back to the top

Article Info
Article ID : 276400
Revision : 5
Created on : 5/11/2006
Published on : 5/11/2006
Exists online : False
Views : 304