Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewarrow/63d4dbbf171e00b0b455e3623b8468f1 to your computer and use it in GitHub Desktop.
Save andrewarrow/63d4dbbf171e00b0b455e3623b8468f1 to your computer and use it in GitHub Desktop.
.wrapper {
display: flex;
flex-wrap: wrap;
}
.wrapper {
display: grid;
margin: 0 auto;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
grid-auto-rows: minmax(150px, auto);
}
.panel {
/* needed for the flex layout*/
margin-left: 5px;
margin-right: 5px;
flex: 1 1 200px;
}
.tall-panel {
grid-row-end: span 2;
}
.header,
.footer {
margin-left: 5px;
margin-right: 5px;
flex: 0 1 100%;
grid-column: 1 / -1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment