Google Chrome Placeholder Color


#1

Just wanted to drop a line for these html developers who didn’t noticed that Google Chrome (as well as other webkit browsers) has a default placeholder color for inputs & textareas. I just found this today while testing one of my HTML themes.

::-webkit-input-placeholder { color: inherit; }

somewhere in your CSS will reset it.


#2

Helpful Thanks :slight_smile:


#3

When I add in my CSS file it’s work but in w3c CSS validator show me below message:

Unknown pseudo-element or pseudo-class ::-webkit-input-placeholder [-webkit-input-placeholder]