Processing
 

Select background white/transparent - Chrome OSx

25/02/2014 12:16#1

Joined at: 5 months ago

Post: 1

Thank: 0

Thanked: 0

For the life of me I can't remove the background/box shadow on a select box in Chrome on OSx. I need it to be flat white like the other inputs. Take a look here:

http://index1.staging.homeflow.co.uk/pdrum/register.html

Some code in use that isn't doing the job:

background: #ffffff; background: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#ffffff)); background: -moz-linear-gradient(top, white, white); background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 1) 0px, rgba(255, 255, 255, 1) 0px); -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; 
25/02/2014 12:19Top#2

SW4

Member

Joined at: 11 months ago

Post: 25

Thank: 0

Thanked: 0

Try:

select{    -webkit-appearance: none;    box-shadow: none !important; } :-webkit-autofill { color: #fff !important; } 

You may also want to use:

select:focus { outline: none; } 
25/02/2014 12:23Top#3

Joined at: 5 months ago

Post: 1

Thank: 0

Thanked: 0

Setting -webkit-appearance: inherit; on #pd-signin select removed it for me. Then it seems you would need to add some arrow to indicate it is a drop-down.

Also in regards to SW4's comment:

I would not remove the outline on any focussed element as this is poor for accessibility.

Also refer to this article from Chris Coyier

Dropdown default styling - Chris Coyier

Firefox

-moz-appearance: none; text-indent: 0.01px; text-overflow: ''; 

From this answer

Similar articles

Chrome, THREE.js: Cross-origin image load denied

5 years ago - Reply: 5 - Views: 269

Prevent Google Chrome Log XMLHttpRequest

3 years ago - Reply: 5 - Views: 276

How can I include ChromeDriver in a JAR?

3 years ago - Reply: 3 - Views: 81

Chrome geolocation not working on any site

3 years ago - Reply: 1 - Views: 46

wrong borders' width in android browser

3 years ago - Reply: 4 - Views: 206

Uncaught SyntaxError: Unexpected token < On Chrome

3 years ago - Reply: 10 - Views: 468

Flashdata not getting cleared in Codeigniter

3 years ago - Reply: 5 - Views: 57

Illegal access Javascript error in Chrome

3 years ago - Reply: 1 - Views: 51

ng-repeat not updating in Chrome

3 years ago - Reply: 1 - Views: 81

Applying border to a checkbox in Chrome

4 years ago - Reply: 2 - Views: 118

open browser plugin using access vba

3 years ago - Reply: 1 - Views: 25

vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re