Change field size¶
By default, input fields expand to 100% of the available width. Using the new size function we adjust the width for example for (short) numbers.
Note
Please note that this function applies to <input />
fields, only, not to complex fields or combinations of controls.
Standard¶
Code¶
1 2 3 |
|
Modified¶
Parameters¶
Size in pixels¶
Argument is a number.
1 |
|
Size in % (percent)¶
Argument is a string.
1 |
|