I need to have a small 1 character input "box". I managed to to adjust the height by changing the font-size, but even though I used maxlength=1 and size=1 the box is still too wide. It looks as if 4 characters can fit in there. How can the width as displayed be reduced?
Use CSS to exactly format the input field.
<style> .box { width : 15px; font-family : arial; font-size : 12px; } </style> <input type="text" class="box">
adjust the with of the textfield with the width property.