Skip to content

Instantly share code, notes, and snippets.

@Hibrix-net
Created May 5, 2020 08:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hibrix-net/b5ef4d5cb253d409d9f6797aba75cf55 to your computer and use it in GitHub Desktop.
Save Hibrix-net/b5ef4d5cb253d409d9f6797aba75cf55 to your computer and use it in GitHub Desktop.
Styling input placholder (cross-browser)
/** Styling input placholder (cross-browser pseudo-classes and pseudo-elements) **/
::-webkit-input-placeholder { /* WebKit browsers: Chrome/Opera/Safari; Blink/Edge */
color: #939292;
font-size: 15px;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
color: #939292;
font-size: 15px;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
color: #939292;
font-size: 15px;
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
color: #939292;
font-size: 15px;
}
::-ms-input-placeholder { /* Microsoft Edge */
color: #939292;
font-size: 15px;
}
::placeholder { /* Simple pseudo-element (most modern browsers) */
color: #939292;
font-size: 15px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment