How to hide the arrow in the numeric input box

Learn how to use CSS to remove the arrow/tweak box from the numeric input box.

Try hovering over two numeric input boxes to see the difference:

Hidden arrow:

Default:

Function description:You can still increase the number when you scroll the wheel inside the numeric input box.

Hide arrows

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

Try it yourself

Related pages

Manual:HTML formulär

Referenshandbok:HTML <input type="number">