simplify solution

This commit is contained in:
Cody Loyd 2022-01-12 13:31:06 -06:00
parent 4b3d6c8e16
commit c497ab3f7f
2 changed files with 19 additions and 16 deletions

View File

@ -1,5 +1,13 @@
body, html {
height: 100%;
margin: 0;
}
.container { .container {
text-align: center; text-align: center;
height: 100%;
padding: 16px;
box-sizing: border-box;
} }
.container div { .container div {
@ -42,32 +50,19 @@
.container { .container {
display: grid; display: grid;
grid-template-columns: 300px 900px; grid-template-columns: 300px 1fr;
grid-template-rows: 100px 100px 500px 100px; grid-template-rows: 80px 80px 1fr 80px;
gap: 15px; gap: 16px;
} }
.header { .header {
grid-column: 1 / 3; grid-column: 1 / 3;
grid-row: 1 / 2;
} }
.sidebar { .sidebar {
grid-column: 1 / 2;
grid-row: 2 / 4; grid-row: 2 / 4;
} }
.nav {
grid-column: 2 / 3;
grid-row: 2 / 3;
}
.article {
grid-column: 2 / 3;
grid-row: 3 / 4;
}
.footer { .footer {
grid-column: 1 / 3; grid-column: 1 / 3;
grid-row: 4 / 5;
} }

View File

@ -1,5 +1,13 @@
body, html {
height: 100%;
margin: 0;
}
.container { .container {
text-align: center; text-align: center;
height: 100%;
padding: 16px;
box-sizing: border-box;
} }
.container div { .container div {