Created
March 14, 2018 18:26
-
-
Save kevindaus/0e6c3941b1a6e71fcdf51463830bca98 to your computer and use it in GitHub Desktop.
How to change placeholder of input type date
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
input[type="date"]::before{ | |
color: #999; | |
content: attr(placeholder); | |
margin-right: 122px; // push the default placeholder out.. you can add more if you want | |
} | |
input[type="date"]:focus::before { | |
content: "" !important; | |
display: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment