Problem: Content-First Responsive Grid
Problem description
Design a layout containing four sections: hero, features, testimonials, and footer.
Desktop (≥
1024px): Displayherospanning full width at the top, followed byfeaturesandtestimonialsside-by-side, and then thefooter.Mobile (<
1024px): Reorder the layout so thattestimonialsappear immediately afterhero, followed byfeatures, and then thefooter.
Goal
In the styles.css file, implement CSS Grid definitions and media queries to change grid areas and element order between desktop and mobile, emphasizing testimonials on mobile.
Constraints
Use CSS Grid and CSS order only.
Define two breakpoints,
<1024pxand≥1024px.Do not use JavaScript.
Set the layout gap to
20px.
Sample visual output
Here’s what the output would look like:
Good luck trying the problem! If you’re unsure how to proceed, check the Solution.
Problem: Content-First Responsive Grid
Problem description
Design a layout containing four sections: hero, features, testimonials, and footer.
Desktop (≥
1024px): Displayherospanning full width at the top, followed byfeaturesandtestimonialsside-by-side, and then thefooter.Mobile (<
1024px): Reorder the layout so thattestimonialsappear immediately afterhero, followed byfeatures, and then thefooter.
Goal
In the styles.css file, implement CSS Grid definitions and media queries to change grid areas and element order between desktop and mobile, emphasizing testimonials on mobile.
Constraints
Use CSS Grid and CSS order only.
Define two breakpoints,
<1024pxand≥1024px.Do not use JavaScript.
Set the layout gap to
20px.
Sample visual output
Here’s what the output would look like:
Good luck trying the problem! If you’re unsure how to proceed, check the Solution.