Home >Web Front-end >CSS Tutorial >How to Hide the Dropdown Arrow in
Elements in Firefox? " />
Despite Chrome and Safari successfully hiding the dropdown arrow with -webkit-appearance: button;, Firefox presents a challenge due to its differing implementation of the -moz-appearance property.
When applying -moz-appearance: button; to
To hide the dropdown arrow in Firefox, a combination of CSS properties is necessary:
<code class="css">select { -moz-appearance: none; text-indent: 0.01px; text-overflow: ''; }</code>
By setting -moz-appearance to none and adding a minuscule text-indent of 0.01px, the arrow is pushed out of view. text-overflow: '' removes any remaining overflow text, ensuring the arrow stays hidden.
December 11, 2014: -moz-appearance: none; now functions as expected in Firefox 35, eliminating the need for hacks.
April 28, 2014: The aforementioned CSS hack had temporary effectiveness but has since resurfaced in Firefox 31.0.a1 Nightly on multiple platforms.
The above is the detailed content of How to Hide the Dropdown Arrow in