html type number size code example Example: size for number html input[type="number"] { width:50px; }