Reputation: 110163
I have the following CSS which is injected by JavaScript:
select {
-webkit-appearance: none;
}
If I open up Chrome developer tools and uncheck those properties things look OK. How would I override this property in the CSS?
Upvotes: 5
Views: 18923
Reputation: 16373
Maverick's answer is correct, but to be specific, I found the following put the scroll bar back on a select item:
select{
-webkit-appearance: menulist
}
Upvotes: 6
Reputation: 886
"The appearance property is used to display an element using a platform-native styling based on the users' operating system's theme."
Here are some options available:
For more look at mozilla:
https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-appearance
or
http://www.w3schools.com/cssref/css3_pr_appearance.asp
This is a CSS3 protery so you should be aware of the comparability:
https://i.sstatic.net/ZmHg9.png
Upvotes: 6