Online Forum To Support Coders With Technical Assistance - Read Write Execute

How to change placeholder color

Ankit Agrawal
Ankit Agrawal
Published on January 22, 2016 · 1 min read
<style>
::-webkit-input-placeholder { 
    color:#000;
}
:-moz-placeholder {
   color:#000;
   opacity:  1;
}
::-moz-placeholder {
   color:#000;
   opacity:  1;
}
:-ms-input-placeholder { 
   color:#000;
}
</style>
Was this article helpful?
Ankit Agrawal

Ankit Agrawal

Author & Senior Engineer at CodeExecute

Writing practical engineering guides, debugging real-world bottlenecks, and creating free tools for developer productivity.

← Previous Article Display multiple markers with info-window on google map Next Article → How to add the page loader in angularJS??