odin-css-grid-practice/02-grid-layout-2
NetMan 66bda1c97d Added exercises 02 and 03, Completed exercise 02 2024-01-26 12:42:17 +01:00
..
solution Added exercises 02 and 03, Completed exercise 02 2024-01-26 12:42:17 +01:00
README.md Added exercises 02 and 03, Completed exercise 02 2024-01-26 12:42:17 +01:00
desired-outcome-narrow.png Added exercises 02 and 03, Completed exercise 02 2024-01-26 12:42:17 +01:00
desired-outcome-wide.png Added exercises 02 and 03, Completed exercise 02 2024-01-26 12:42:17 +01:00
index.html Added exercises 02 and 03, Completed exercise 02 2024-01-26 12:42:17 +01:00
style.css Added exercises 02 and 03, Completed exercise 02 2024-01-26 12:42:17 +01:00

README.md

Responsive Holy Grail Layout with Grid

For this exercise, we are going to take our Holy Grail Layout from the first exercise and make it responsive. To do this we will simply change our fixed track sizes to be dynamic. Consider this a warmup for the next exercise and make sure your layout is responding properly when resizing the browser window.

Hints

  • You only need to add to the CSS selectors
  • Use dynamic track sizes for your columns and rows

Desired Outcome

When the browser is narrow:

desired outcome narrow

When the browser is stretched wide:

desired outcome wide

Self Check

  • The gap is 15px
  • The grid has two columns
  • The grid has four rows
  • The grid tracks do not use static sizes (no pixels!)
  • The second column is three times larger than the other
  • The third row is five times larger than the others
  • The rows and columns stretch wider when making the browser window bigger
  • The rows and columns stretch taller when making the browser window smaller