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

ID: Q185141


The information in this article applies to:


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, please see the MSDN Web Workshop:

http://msdn.microsoft.com/workshop/default.asp

Additional query words: kbInetDev kbIE400 kbIE401 kbHTML


Keywords          : kbIE400 kbIE401 kbIE500 
Version           : WINDOWS:4.0,4.01
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: April 30, 1999