Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

css style on select option

css style on select option


I make the style for Select option dropdown list. Is it possible that to make the font-size differently? For example,

-- Select Country -- 



This is my dropdown list:

.select_join {
  width: 170px;
  height: 28px;
  overflow: hidden;
  background: url('') no-repeat right #FEFEFE;
  border: #FEFEFE 1px solid;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  -webkit-box-shadow: inset 0px 0px 10px 1px #FEFEFE;
  box-shadow: inset 0px 0px 10px 1px #FEFEFE;
.select_join select {
  background: transparent;
  width: 170px;
  border: 0;
  border-radius: 0;
  height: 28px;
  -webkit-appearance: none;
.select_join select:focus {
  outline: none;

See also demo on JS Fiddle.

It works only on Firefox. Could be that browser not support?

Chrome: Version 27.0.1453.116 m

IE: 10

Firefox: 22.0

Problem courtesy of: user1128331


Add a CSS class to the tag for example:

Looks like there's a bug in webkit browsers like Google Chrome and this solution doesn't work. Take a look at this: styling an option in a select with google chrome

Solution courtesy of: Atropo


View additional discussion.

This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here

Share the post

css style on select option


Subscribe to Css3 Recipes - The Solution To All Your Style Problems

Get updates delivered right to your inbox!

Thank you for your subscription