I do not want to display the spinner on a number field. I've tried adding this to the header code but it does not work:
/* Remove spin buttons for all number inputs */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type="number"] {
-moz-appearance: textfield;
text-align: center;
font-size: 1.25rem;
font-weight: bold;
}
Any suggestions?
Thanks,
Eldon
Number Spinner - Post ID 305582
Was able to fix the problem by changing the code to the following:
<style>
/* Force spinner removal for WebKit (Chrome, Safari, Edge) */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none !important;
margin: 0 !important;
}
/* Firefox spinner removal + styling */
input[type="number"] {
-moz-appearance: textfield !important;
text-align: center;
font-size: 1.25rem;
font-weight: bold;
}
</style>
Later,
Eldon
<style>
/* Force spinner removal for WebKit (Chrome, Safari, Edge) */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none !important;
margin: 0 !important;
}
/* Firefox spinner removal + styling */
input[type="number"] {
-moz-appearance: textfield !important;
text-align: center;
font-size: 1.25rem;
font-weight: bold;
}
</style>
Later,
Eldon
Hi Eldon, Your two posts above here sound as if they have been taken out from the middle of a discussion. What are you trying to accomplish, and what kind of 'spinner' are you talking about? Could you let us have a look?
Ha en riktig god dag!
Inger, Norway
My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com
Inger, Norway
My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com
Eldon is referring to a number input having spinner dial in a form.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.