Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Grid Layout Going Further with Grid Layout Adjust the Grid with Media Queries

Samuel Kleos
Samuel Kleos
Front End Web Development Techdegree Student 11,762 Points

What if... 🤔 Everything was auto rows (grid-auto-rows:) including the desktop.

If you've specified grid-auto-rows::

.container {
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(150px, auto);

Is it ok to specify 4 lines of grid-template-areas: without specifying 4 explicit rows?

@media screen and (min-width: 768px) {
    .container {
        grid-template-columns: 1fr 2fr 1fr;

          "header header header" 
          "nav main aside"
          "nav main aside"
          "nav footer aside";