Created
May 5, 2020 08:12
-
-
Save Hibrix-net/b5ef4d5cb253d409d9f6797aba75cf55 to your computer and use it in GitHub Desktop.
Styling input placholder (cross-browser)
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
/** 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