1

I had put the css-code like:

input:-webkit-autofill{
  color:white;
}

but it didn't work. I hope somebody can help me, thanks a lot.

Yangshun Tay
  • 49,270
  • 33
  • 114
  • 141
zooer
  • 11
  • 4

1 Answers1

0

First of, CSS syntax is incorrect. input:-webkit-autofill should be input:-webkit-autofill. The weird colon thing with the gap is not recognised by the browser.

Also instead of color:white; use -webkit-text-fill-color: white;

You might be aware of it, but I'll mention it anyway, this will only work on WebKit browsers.

https://jsfiddle.net/WW3bh/31999/

Maz T
  • 1,184
  • 13
  • 18