Last active
December 23, 2015 18:59
-
-
Save pospi/6679149 to your computer and use it in GitHub Desktop.
Placeholder styles for all browsers. Note the opacity resets, as this is how the default placeholder styles are applied.
This file contains hidden or 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: #F00; | |
opacity: 1; | |
} | |
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ | |
color: #F00; | |
opacity: 1; | |
} | |
::-moz-placeholder { /* Mozilla Firefox 19+ */ | |
color: #F00; | |
opacity: 1; | |
} | |
:-ms-input-placeholder { /* Internet Explorer 10+ */ | |
color: #F00; | |
opacity: 1; | |
} | |
/* and HTML4 ones for old IE (you will need a polyfill for this) */ | |
.placeholder { color: #F00; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment