Why won't my input resize when I change the type to type="number"
but it works with type="text"
?
Email: <input type="text" name="email" size="10"><br/>
number: <input type="number" name="email" size="10">
Seem like the input
type number
does not support size
attribute or it's not compatible along browsers, you can set it through CSS instead:
input[type=number]{
width: 80px;
}