Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kevindaus/0e6c3941b1a6e71fcdf51463830bca98 to your computer and use it in GitHub Desktop.
Save kevindaus/0e6c3941b1a6e71fcdf51463830bca98 to your computer and use it in GitHub Desktop.
How to change placeholder of input type date
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