Skip to content

Instantly share code, notes, and snippets.

@jsmanifest
Created June 23, 2019 22:30
Show Gist options
  • Save jsmanifest/f6879039b8168c5a88187aead32fdc9d to your computer and use it in GitHub Desktop.
Save jsmanifest/f6879039b8168c5a88187aead32fdc9d to your computer and use it in GitHub Desktop.
.boxes {
margin: 10px 0;
padding: 3px;
display: grid;
grid-gap: 10px;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: 1fr;
}
.box {
font-size: 18px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
width: 100%;
height: 100%;
overflow: hidden;
}
.box-name {
display: flex;
align-items: center;
height: 50px;
}
.box.gender-container {
position: relative;
}
.box img {
object-fit: cover;
width: 100%;
height: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment