Knowledge Base

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

Article ID: 185141

Article Last Modified on 5/11/2006


APPLIES TO


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:

Additional query words: kbInetDev kbIE400 kbIE401 kbHTML

Keywords: kbprb KB185141