The size attribute specifies the width of an <input> element, in characters
and the default value
is 20 which you are getting in the rendered html. The size attribute is not a precise method of sizing - it refers to the
number of characters the field will be able to display at once. The css style "width" will override the size attribute in browsers that support
CSS and make the field the correct width
, and for those that don't, it
will fall back to the specified number of characters.
If you examine the CSS of the <input> carefully you can find the following style which indicates that the width of input will be always 100% of the width of span (means input will have the same width as that of the span).
html body .riSingle .riTextBox[type=
Hope this helps,