Hikmat Ullah Bettani
Hikmat Ullah Bettani

Reputation: 23

Drop Down width is not working in Google Chrome

I am using a drop down where the <option> width seem correct in Firefox, but not in Google Chrome.

Below is the example code.

<select id="Select1" style="width:170px;" >
   <option></option>
   <option>how are you</option>
   <option>how are youhow are you</option>
   <option>how are youhow are youhow are you</option>
   <option>how are youhow are youhow are youhow are you</option>
   <option>how are youhow are youhow are youhow are youhow are you</option>
</select>

What I want: I want that the <option> width to be the same in Firefox and Google Chrome.

Upvotes: 0

Views: 1571

Answers (1)

Matt Greenberg
Matt Greenberg

Reputation: 2330

You can't style webkit browsers option tag.

http://www.electrictoolbox.com/style-optgroup-option-css-chrome/

Upvotes: 1

Related Questions