Skip to content

Instantly share code, notes, and snippets.

@otabekoff
Created June 29, 2022 06:52
Show Gist options
  • Save otabekoff/becca4d50bcef8489724d928812eec87 to your computer and use it in GitHub Desktop.
Save otabekoff/becca4d50bcef8489724d928812eec87 to your computer and use it in GitHub Desktop.
.container {
border: 1px solid #333;
height: 40px;
width: 400px;
}
.center {
display: table;
height: 100%;
width: 100%;
}
.center > span {
display: table-cell;
text-align: center;
text-align: center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment