Skip to content

Instantly share code, notes, and snippets.

@codewithbernard
Created August 13, 2021 11:12
Show Gist options
  • Select an option

  • Save codewithbernard/59cfd53d486caaf13ddff6aa8b2c8903 to your computer and use it in GitHub Desktop.

Select an option

Save codewithbernard/59cfd53d486caaf13ddff6aa8b2c8903 to your computer and use it in GitHub Desktop.
.container {
position: relative;
}
.content {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment