0

I have used selectbox with basic style. Though on different browsers like safari and mozilla its looks different.

Here is my CSS:

.select { 
padding:7px; 
min-height:30px; 
background:#CCC;
border: 1px solid #7f7f7f;
border-radius: 4px;   
font-size: 13px; 
}

Here is the html

<select class="select">
<option>1</option>
<option>2</option>
<option>3</option>
</select>

Is there any way show select box unique. I don't want to use custom jquery selectbox

2 Answers2

0

I think you have used min-height unnecessarily. Remove it and check your code again.

.select { 
padding:7px; 
background:#CCC;
border: 1px solid #7f7f7f;
border-radius: 4px;   
font-size: 13px; 
}

You can increase or decrease the padding as per your required height.

Husen
  • 955
  • 1
  • 6
  • 16
0

First search result in Google returned:

Fully custom select box, simple css only

The idea is to wrap the select in an element, then reset as much of the styling as possible. All browsers display <select> differently.

DEMO