Put in order · HTML and CSS course · Module 8: CSS Grid

Building a Media Query for Responsive Grid

Arrange a media query that changes the grid to single-column on mobile:

Items to put in order

  • @media
  • }
  • {
  • .grid { grid-template-columns: 1fr }
  • (max-width: 768px)

You can check the correct answer by solving this task in the CodeWorlds game.