Languages
[Edit]
EN

CSS - remove default arrow icon from select HTML element

9 points
Created by:
Marley-Marks
712

In this short article, we would like to show how to remove default arrow icon from select HTML element using CSS.

Quick solution:

// ONLINE-RUNNER:browser;

<style>

    select {
        -webkit-appearance: none;  /* removes expand icon in older Chrome versions  */
        -moz-appearance: none;     /* removes expand icon in older Firefox versions */
        appearance: none;          /* removes expand icon                           */
    }

    select::-ms-expand {           /* removes expand icon in IE10                   */
        display: none;
    }

</style>

<select>
  <option>New York</option>
  <option>London</option>
  <option>Tokyo</option>
</select>

 

Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join