This is done automatically for every browser except Chrome.
I\'m guessing I have to specifically target Chrome.
Any solutio
Sometimes you need SPECIFICITY to make sure your styles are applied with strongest factor id
Thanks for @Rob Fletcher for his great answer, in our company we have used
So please consider adding styles prefixed with the id of the app container
#app input:focus::-webkit-input-placeholder, #app textarea:focus::-webkit-input-placeholder {
color: #FFFFFF;
}
#app input:focus:-moz-placeholder, #app textarea:focus:-moz-placeholder {
color: #FFFFFF;
}
For a pure CSS based solution:
input:focus::-webkit-input-placeholder {color:transparent;}
input:focus::-moz-placeholder {color:transparent;}
input:-moz-placeholder {color:transparent;}
Note: Not yet supported by all browser vendors.
Reference: Hide placeholder text on focus with CSS by Ilia Raiskin.