Created
December 9, 2015 08:26
-
-
Save gwagroves/0f4f8a34ed17742fc6ef to your computer and use it in GitHub Desktop.
CSS to style placeholder text cross-browser
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, Blink, Edge */ | |
color: #fff; | |
} | |
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ | |
color: #fff; | |
opacity: 1; | |
} | |
::-moz-placeholder { /* Mozilla Firefox 19+ */ | |
color: #fff; | |
opacity: 1; | |
} | |
:-ms-input-placeholder { /* Internet Explorer 10-11 */ | |
color: #fff; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment