Skip to content

Instantly share code, notes, and snippets.

@hubgit
Created November 6, 2021 19:45
Show Gist options
  • Save hubgit/bbb6f20dad24511431c4efd990f19984 to your computer and use it in GitHub Desktop.
Save hubgit/bbb6f20dad24511431c4efd990f19984 to your computer and use it in GitHub Desktop.
CSS Grid Layout
.container {
height: 100%;
overflow: hidden;
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: auto 1fr auto;
column-gap: 5px;
}
@media (max-width: 800px) {
.container {
grid-template-columns: none;
}
}
.header {
grid-column-start: 1;
grid-column-end: -1;
padding: 5px;
}
.footer {
grid-column-start: 1;
grid-column-end: -1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment