Coding task · HTML and CSS course · Module 8: CSS Grid
Responsive Layout with Breakpoints
Media queries let you adapt the layout to different screen sizes. @media (max-width: 768px) changes the grid to a single-column layout for mobile. It's like adapting a temple plan to different terrain sizes!
Task
Create a responsive grid layout: desktop (3 columns), tablet @media max-width: 768px (2 columns), mobile @media max-width: 480px (1 column). Use grid-template-columns and grid-template-areas that change at each breakpoint.