Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6930069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:23:58+00:00 2026-05-27T11:23:58+00:00

Note: This question is not about making a custom dropdown. It’s only about possibilities

  • 0

Note: This question is not about making a custom dropdown. It’s only about possibilities of styling <option> elements within the select element in CSS

How can I style <option>s of a <select> element with cross-browser compatibility? I know many JavaScript ways which customize the dropdown to convert into <li>, which I’m not asking about.

<select class="select">
    <option selected>Select</option>
    <option>Blue</option>
    <option >Red</option>
    <option>Green</option>
    <option>Yellow</option>
    <option>Brown</option>
</select>

I’m asking what could be possible with CSS only, with compatibility for IE9+, Firefox, and Chrome.

enter image description here

I want to style like this or as close as possible.

enter image description here

I tried here http://jsfiddle.net/jitendravyas/juwz3/3/, but Chrome doesn’t show any styling except font color, while Firefox shows some more. How to get border and padding work in Chrome too?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T11:23:59+00:00Added an answer on May 27, 2026 at 11:23 am

    EDIT 2015 May

    Disclaimer: I’ve taken the snippet from the answer linked below:

    Important Update!

    In addition to WebKit, as of Firefox 35 we’ll be able to use the appearance property:

    Using -moz-appearance with the none value on a combobox now remove the
    dropdown button

    So now in order to hide the default styling, it’s as easy as adding the following rules on our select element:

    select {
       -webkit-appearance: none;
       -moz-appearance: none;
       appearance: none;
    }
    

    For IE 11 support, you can use [::-ms-expand][15].

    select::-ms-expand { /* for IE 11 */
        display: none;
    }
    

    Old Answer

    Unfortunately what you ask is not possible by using pure CSS. However, here is something similar that you can choose as a work around. Check the live code below.

    div { 
      margin: 10px;
      padding: 10px; 
      border: 2px solid purple; 
      width: 200px;
      -webkit-border-radius: 5px;
      -moz-border-radius: 5px;
      border-radius: 5px;
    }
    div > ul { display: none; }
    div:hover > ul {display: block; background: #f9f9f9; border-top: 1px solid purple;}
    div:hover > ul > li { padding: 5px; border-bottom: 1px solid #4f4f4f;}
    div:hover > ul > li:hover { background: white;}
    div:hover > ul > li:hover > a { color: red; }
    <div>
      Select
      <ul>
        <li><a href="#">Item 1</a></li>
        <li><a href="#">Item 2</a></li>
        <li><a href="#">Item 3</a></li>
      </ul>
    </div>

    EDIT

    Here is the question that you asked some time ago.
    How to style a <select> dropdown with CSS only without JavaScript?
    As it tells there, only in Chrome and to some extent in Firefox you can achieve what you want. Otherwise, unfortunately, there is no cross browser pure CSS solution for styling a select.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

(NOTE: This question is not about escaping queries, it's about escaping results) I'm using
(note that this question is not about CAS, it's about the May fail spuriously
Please note this is not a question about online/hosted SVN services. I am working
Please note: This is a question about the Eclipse plugin Subversive , and not
Please note that this question is not about the mysql query per se, but
Please note that this question is not about the mysql query per se, but
Important note : this question is not about the superiority of a bracing style
Moderator note: This question is not a good fit for our question and answer
Note This is not a REBOL-specific question. You can answer it in any language.
Note, this question is a bit subtle so read it carefully: I'm not just

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.