Grid / Flex Box Quiz

Instructions

This exercise will work with CSS flexbox and CSS grids. Flexbox handles one dimension (x or y), while Grid handles both.

View Rachel Andrew's video to see how to develop a layout from scratch.

Setting up the Grid

  1. Change display to grid to turn children into grid items.
  2. Use grid-template-columns: 1fr 1fr 1fr; for wide screens.
  3. Use grid-column: 1 / span 3; for header and footer.

Finishing Up

  1. Target odd items with azure and even with lightyellow.