scrimba
Responsive Design
CSS Grid
minmax()
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

AboutCommentsNotes
minmax()
Expand for more info
css
style.css
run
preview
console
.grid {
display: grid;
grid-template-columns: 5em auto 5em;
grid-template-areas:
"header header header"
". content ."
". sidebar ."
"footer footer footer"
}

@media (min-width: 600px) {
.grid {
grid-template-columns: 100px 300px 100px 100px;
grid-template-areas:
"header header header header"
". content sidebar ."
"footer footer footer footer";
}
}

.header {
grid-area: header;
}

.sidebar {
grid-area: sidebar;
}

.big {
grid-area: content;
}

.footer {
grid-area: footer;
}

.grid-item {
background: #B823C1;
color: white;
padding: 1em 2em;
border: 2px solid purple;
display: flex;
align-items: center;
justify-content: center;
}

.big {
padding: 3em 2em;
background: #FF5670;
}
Console
index.html
-3:35