Skip to content

Instantly share code, notes, and snippets.

@mujsdev
Created December 3, 2022 16:53
Show Gist options
  • Save mujsdev/1797ed3eec94cc77c00b005e176dd89b to your computer and use it in GitHub Desktop.
Save mujsdev/1797ed3eec94cc77c00b005e176dd89b to your computer and use it in GitHub Desktop.
.box {
position: relative;
}
.box p {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment