PRB: SIZE Attribute of INPUT tag Has No Effect for Some Types (185141)



The information in this article applies to:

  • Microsoft Internet Explorer (Programming) 4.0
  • Microsoft Internet Explorer (Programming) 4.01

This article was previously published under Q185141

SYMPTOMS

When developing Web pages for Internet Explorer 4.0, you can create intrinsic controls using the <INPUT> tag. With the <INPUT> tag, you specify the TYPE attribute to indicate the type of intrinsic control. This can be Button, Checkbox, and so forth. Also, for most controls, you can specify the size of the control using the Size attribute. However, the Size attribute does not apply to the Button, Checkbox, Image, Radio, Reset, or Submit controls.

For those controls that accept text for the Value attribute, such as Button, Radio, Reset, and Submit, the size of the control is determined by the size of the text value.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Open a new HTML file and insert the following HTML:
    <HTML>
    <HEAD>
    </HEAD>
    <BODY>
       <FORM>
          <INPUT TYPE="Button" SIZE="25" VALUE="Test">
       </FORM>
    </BODY>
    <HTML>
    						
  2. Navigate to the Web page created in step 1. You will notice that the size of the button is based on the size of the text in the VALUE attribute.

REFERENCES

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

Modification Type:MajorLast Reviewed:5/11/2006
Keywords:kbprb KB185141