Skip to content

Instantly share code, notes, and snippets.

@stoneboyindc
Created February 27, 2021 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stoneboyindc/897f400ac4c0e03ecfc0b5ab3cd5653f to your computer and use it in GitHub Desktop.
Save stoneboyindc/897f400ac4c0e03ecfc0b5ab3cd5653f to your computer and use it in GitHub Desktop.
* {
font-family: Helvetica;
font-size: 1.4em;
color: rgb(58, 51, 51);
text-align: center;
color: white;
}
.container div:nth-child(1), div:nth-child(6) {
background-color: #B8336A;
}
.container div:nth-child(2), div:nth-child(7) {
background-color: #726DA8;
}
.container div:nth-child(3), div:nth-child(8) {
background-color: #7D8CC4;
}
.container div:nth-child(4), div:nth-child(9) {
background-color: #A0D2DB;
}
.container div:nth-child(5) {
background-color: #C490D1;
}
.container div:nth-child(10) {
background-color: tomato;
}
.container {
display: grid;
grid-template: repeat(3, 3em) / repeat(3, 3fr);
grid-auto-rows: 3em;
grid-gap: 10px;
}
.container div {
text-align: center;
vertical-align: middle;
line-height: 130px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment