Created
January 16, 2017 14:46
-
-
Save mohammad-ahid/52b147cb05d85f0f5ba6f93ef497930a to your computer and use it in GitHub Desktop.
CSS hack to hide Chrome default date picker styles
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
// @see http://stackoverflow.com/questions/11320615/disable-browser-native-datepicker | |
input::-webkit-calendar-picker-indicator{ | |
display: none; | |
} | |
input[type="date"]::-webkit-input-placeholder{ | |
visibility: hidden !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@JeffersonFerreira
Can you explain how I can hide it in Firefox, because I can't make it work with the required as you explained. I have it like that right now
It also doesn't work in Safari too
Firefox version: 97.0.2 (64-bit)