Skip to content

Instantly share code, notes, and snippets.

@apfister
Created February 1, 2021 17:32
Show Gist options
  • Save apfister/7cbe84cc7acbdbc86e844cb0ed06fc82 to your computer and use it in GitHub Desktop.
Save apfister/7cbe84cc7acbdbc86e844cb0ed06fc82 to your computer and use it in GitHub Desktop.
.container {
padding: 2%;
min-height: 400px;
text-align: left;
position: relative;
vertical-align: top;
/* add these below to get the cards top-aligned */
display: flex;
flex-wrap: wrap;
}
.container .mix {
width: 20%;
/* remove the height attribute so the cards will auto adjust their own height */
/* height: 500px; */
/* add this to make only 4 cards per row */
flex: 1 0 21%;
background: white;
display: none;
FONT-VARIANT: JIS04;
}
/* add this to add spaces between cards. TODO: better align last row of three */
.card-body {
margin-right: 30px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment