Skip to content

Instantly share code, notes, and snippets.

@christoferw
Created August 3, 2016 08:02
Show Gist options
  • Save christoferw/2bf93dc4705ba33dff72aa6510d13d55 to your computer and use it in GitHub Desktop.
Save christoferw/2bf93dc4705ba33dff72aa6510d13d55 to your computer and use it in GitHub Desktop.
Placeholder for Input type: date
input[type="date"]:before {
content: attr(placeholder) !important;
color: #aaa;
margin-right: 0.5em;
}
input[type="date"]:focus:before,
input[type="date"]:valid:before {
content: "";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment