giving min and max in input type number reduces the width code example Example: size of number input box input[type=number]{ width: 80px; }