tags:

views:

24

answers:

2

I have an <input> that I want to be smaller than size="1" but I do not know how to make it smaller. Is it possible to do this?

I tried using fractions and decimals but neither worked.

+4  A: 

You can assign it a pixel width instead:

<input type="text" style="width: 4px">
Pekka
ok, that makes sense, thanks.
chromedude
+2  A: 

For type="text", no. At least, not using the size attribute:

The width is given in pixels except when type attribute has the value "text" or "password". In that case, its value refers to the (integer) number of characters.

CanSpice