Skip to content

Instantly share code, notes, and snippets.

@wes-goulet
Created July 26, 2018 17:07
Show Gist options
  • Save wes-goulet/48b59c150a348cbfa46ca5a7ba0bdd49 to your computer and use it in GitHub Desktop.
Save wes-goulet/48b59c150a348cbfa46ca5a7ba0bdd49 to your computer and use it in GitHub Desktop.
CSS Grid Example
.container {
height: 100%;
display: grid;
grid-gap: 3px;
grid-template-columns: repeat(12, 1fr);
grid-template-rows: 40px auto 40px;
grid-template-areas:
"h h h h h h h h h h h h"
"m c c c c c c c c c c c"
"f f f f f f f f f f f f";
}
.header {
grid-area: h;
}
.menu {
grid-area: m;
}
.content {
grid-area: c;
}
.footer {
grid-area: f;
}
@wes-goulet
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment