Last active
March 15, 2022 11:11
-
-
Save tahafarooqui/4f47857b94ff6534f851edcdbad4c2ef to your computer and use it in GitHub Desktop.
Displaying jQuery's Datepicker in the center of the screen
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
@media(max-width:992px){ | |
/* On mobile set datepicker to viewport center*/ | |
#ui-datepicker-div { | |
position: fixed !important; | |
left: 50% !important; | |
top: 50% !important; | |
transform:translate(-50%, -50%); | |
-webkit-transform:translate(-50%, -50%); | |
} | |
} | |
/*for this demo only*/ p{height:1000px;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment