Css Hide Number Input Arrows Code Example


Example 1: remove arrows from input type number


/* 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;
}

Example 2: get rid of arrows number input


input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button
{
-webkit-appearance: none;
margin: 0;
}

Example 3: html css number input field don't show arrows


input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button
{
-webkit-appearance: none;
margin: 0;
}

input[type=number] {
-moz-appearance: textfield;
}

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable