Skip to content

Instantly share code, notes, and snippets.

@meetawahab
Created October 26, 2020 05:41
Show Gist options
  • Save meetawahab/20aad848dec3b183993eabf3a4596235 to your computer and use it in GitHub Desktop.
Save meetawahab/20aad848dec3b183993eabf3a4596235 to your computer and use it in GitHub Desktop.
Vertically center WordPress login form
// 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