Skip to content

Instantly share code, notes, and snippets.

@Lauviah0622
Created September 26, 2020 15:14
Show Gist options
  • Save Lauviah0622/08528f98399d9daa91e00ecf1c7e8c18 to your computer and use it in GitHub Desktop.
Save Lauviah0622/08528f98399d9daa91e00ecf1c7e8c18 to your computer and use it in GitHub Desktop.
html {
display: table;
height: 100%;
width: 100%;
}
body {
display: table-cell;
vertical-align: middle;
div {
margin: auto;
width: 100px;
height: 100px;
outline: inset 100px green;
outline-offset: -125px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment