Skip to content

Instantly share code, notes, and snippets.

@sonichandni
Created September 16, 2021 11:48
Show Gist options
  • Save sonichandni/dbaa38ecfa6fea4093339a2b9554b559 to your computer and use it in GitHub Desktop.
Save sonichandni/dbaa38ecfa6fea4093339a2b9554b559 to your computer and use it in GitHub Desktop.
Remove up-down arrow from input number fields
/*Remove up down arroww from number field start*/
/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
-webkit-appearance: none !important;
-moz-appearance: none !important;
appearance: none !important;
margin: 0 !important;
}
/* Firefox */
input[type="number"] {
-moz-appearance: textfield;
}
/*Remove up down arroww from number field end*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment