How to hide the arrow in the number input box
- Previous Page Clear Input Box
- Next Page Copy Text to Clipboard
Learn how to use CSS to remove the arrow/slidewire from the number input box.
Please try hovering over two number input boxes to see the difference:
Hidden arrow:
Default:
Function description:You can still increase the number when you scroll the wheel inside the number input box.
Hide the arrow
/* 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; }
Related pages
Tutorial:HTML Form
Reference Manual:HTML <input type="number">
- Previous Page Clear Input Box
- Next Page Copy Text to Clipboard