Last active
August 29, 2015 13:58
-
-
Save diegoarigony/abdaea652761fc659944 to your computer and use it in GitHub Desktop.
Placeholder text style - From http://stackoverflow.com/questions/2610497/change-an-inputs-html5-placeholder-color-with-css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
::-webkit-input-placeholder { /* WebKit browsers */ color:#999; } | |
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ color:#999; opacity:1; } | |
::-moz-placeholder { /* Mozilla Firefox 19+ */ color:#999; opacity:1; } | |
:-ms-input-placeholder { /* Internet Explorer 10+ */ color:#999; } | |
/* FOCUS */ | |
input:focus::-webkit-input-placeholder, textarea:focus::-webkit-input-placeholder { color:#a8a8a8 !important; } | |
input:focus:-moz-placeholder, textarea:focus:-moz-placeholder { color:#a8a8a8 !important; opacity:1; } | |
input:focus::-moz-placeholder, textarea:focus::-moz-placeholder { color:#a8a8a8 !important; opacity:1; } | |
input:focus:-ms-input-placeholder, textarea:focus:-ms-input-placeholder { color:#a8a8a8 !important; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment