Created
September 23, 2019 08:34
-
-
Save GergKllai1/80840f911a95a9de708da5b451a2aebd to your computer and use it in GitHub Desktop.
This file contains 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[name="dob"]:before { | |
content: "Date of Birth"; | |
color: #aaa; | |
margin-right: 0.5em; | |
} | |
input[name="dob"]:focus:before, | |
input[name="dob"]:valid:before { | |
content: ""; | |
} | |
input[name="dob"]:required:invalid::-webkit-datetime-edit { | |
color: transparent; | |
} | |
input[name="dob"]:focus::-webkit-datetime-edit { | |
color: black !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment