How to style a select dropdown with CSS

I’ve spent the last few hours trying to style a select dropdown. It’s lame, so lame. It’s lame because the best and prettier options use JavaScript.

That’s great, if you don’t care about mobile. One of the cool things about select dropdowns is that in mobile they have a special helper:

ios select dropdown

I’ve looked to a lot of resource but none can be compared to Bootstrap.

So basically I ripped off their select dropdown styles. It looks great on Google Chrome, Safari and, more or less, on Firefox.

With the styles below you can turn this crap:

Into this cool select dropdown:



4 Responses to “How to style a select dropdown with CSS”

  1. me November 8, 2017 at 1:42 pm #

    Doesn’t work fam

    • Rick November 8, 2017 at 2:25 pm #

      Helpful comment! What doesn’t work? How do you see it? Can you share a screenshot?

  2. JS November 14, 2017 at 2:32 pm #

    in FF 56.0.2 64-Bit the Drop-Down Triangle is not styled, in chrome its working fine

    • Rick November 14, 2017 at 4:16 pm #

      Yeah you can not fully style a dropdown in Firefox.

      If you really need the same dropdown you need some sort of custom library.

Leave a Reply

Add <code> Some Code </code> by using this tags.