How to fix input type “number” won’t resize with CSS?

Spread the love

To fix input type "number" won’t resize with CSS, we set the width property.

For instance, we write

input[type="number"] {
  width: 80px;
}

to set the width of the number input to 80px.

Leave a Reply

Your email address will not be published. Required fields are marked *