Skip to content

Instantly share code, notes, and snippets.

@snakebird
Created November 15, 2021 15:53
Show Gist options
  • Save snakebird/b23d3b2af1e7fe93ce7070293155cf67 to your computer and use it in GitHub Desktop.
Save snakebird/b23d3b2af1e7fe93ce7070293155cf67 to your computer and use it in GitHub Desktop.
.inset-center for Tailwind
.inset-center {
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