Skip to content

Instantly share code, notes, and snippets.

@gwagroves
Created December 9, 2015 08:26
Show Gist options
  • Save gwagroves/0f4f8a34ed17742fc6ef to your computer and use it in GitHub Desktop.
Save gwagroves/0f4f8a34ed17742fc6ef to your computer and use it in GitHub Desktop.
CSS to style placeholder text cross-browser
::-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