Created
October 26, 2020 05:41
-
-
Save meetawahab/20aad848dec3b183993eabf3a4596235 to your computer and use it in GitHub Desktop.
Vertically center WordPress login form
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
// Add the following CSS snippet in LoginPress > Custom CSS/JS > Custom CSS section to vertically align center the login form. | |
body.login { | |
display: block !important; | |
} | |
#login { | |
position: absolute !important; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
margin-top: 0 !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment