Skip to content

Instantly share code, notes, and snippets.

@kadsyy
Created January 13, 2021 04:43
Show Gist options
  • Save kadsyy/2c959ab18126217abccf26d57f167a5f to your computer and use it in GitHub Desktop.
Save kadsyy/2c959ab18126217abccf26d57f167a5f to your computer and use it in GitHub Desktop.
horizontal center position absolute
.center {
left: 50%;
transform: translateX(-50%);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment