Skip to content

Instantly share code, notes, and snippets.

@sebastiano-guerriero
Last active July 25, 2018 08:26
Show Gist options
  • Select an option

  • Save sebastiano-guerriero/a3be6964d9c425b8f55b503ca2416c19 to your computer and use it in GitHub Desktop.

Select an option

Save sebastiano-guerriero/a3be6964d9c425b8f55b503ca2416c19 to your computer and use it in GitHub Desktop.
.parent {
position: relative;
.child {
width: 200px;
height: 200px;
position: absolute;
top: calc(50% - 100px);
left: calc(50% - 100px);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment