2022-01-12 11:31:06 -08:00
|
|
|
body, html {
|
|
|
|
height: 100%;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2022-01-05 10:26:16 -08:00
|
|
|
.container {
|
|
|
|
text-align: center;
|
2022-01-12 11:31:06 -08:00
|
|
|
height: 100%;
|
|
|
|
padding: 16px;
|
|
|
|
box-sizing: border-box;
|
2022-01-05 10:26:16 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.container div {
|
|
|
|
padding: 15px;
|
|
|
|
font-size: 32px;
|
|
|
|
font-family: Helvetica;
|
|
|
|
font-weight: bold;
|
|
|
|
color: white;
|
|
|
|
border-radius: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.header {
|
|
|
|
background-color: #FFDE22;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar {
|
|
|
|
background-color: #FF7755;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav {
|
|
|
|
background-color: #00DDFF;
|
|
|
|
}
|
|
|
|
|
|
|
|
.article {
|
|
|
|
background-color: #bccbde;
|
|
|
|
}
|
|
|
|
|
|
|
|
.article p {
|
|
|
|
font-size: 18px;
|
|
|
|
font-family: sans-serif;
|
|
|
|
color: white;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.footer {
|
|
|
|
background-color: #393f4d;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* SOLUTION */
|
|
|
|
|
|
|
|
.container {
|
|
|
|
display: grid;
|
2022-01-12 12:30:06 -08:00
|
|
|
grid-template-columns: 300px 900px;
|
|
|
|
grid-template-rows: 100px 100px 500px 100px;
|
|
|
|
gap: 15px;
|
2022-01-05 10:26:16 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.header {
|
|
|
|
grid-column: 1 / 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar {
|
|
|
|
grid-row: 2 / 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
.footer {
|
|
|
|
grid-column: 1 / 3;
|
|
|
|
}
|