Monday, 20 June 2016

css - Change input placeholder color darker




Follow this article (Style text input placeholder), i can change the color of the text input placeholder to red color. But it is always a light-red color, not red exactly.



Is there any way to make it a red color exactly?



update



The color on Chrome is red (this is correct), the color on Firefox is not red, it is light-red or blurred, i guessed that.



http://i279.photobucket.com/albums/kk132/svincoll4/2013-03-19_181239_zps84166305.png







EDIT (from the OP answer):



Please check this example (http://jsfiddle.net/LQkQG/), the color is red on Chrome, but light-red on Firefox.
I want the color on Firefox same with the Chrome.


Answer



I've found you need to override opacity.




::-webkit-input-placeholder { /* WebKit browsers */
color: red;
opacity: 1 !important;
}

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...