Four card feature section challenge Using CSS Grid
Design comparison
Solution retrospective
First time using CSS Grid while actually trying to understand it and I really enjoyed using it. I can't wait to create more sites with it. I would appreciate any feedback on how I used grid.
Community feedback
- @emestabilloPosted almost 3 years ago
Hi Chris, congrats on your submission! Great job with responsiveness and code is well-structured, easy to understand.
Grid: I would probably wait to use grid until the cards are laid out, since they will naturally stack anyway without grid. But that's opinion. I would also only use it for the cards. The heading text can be centered with text-align. A few more thoughts:
<header>
can be substituted fordiv class="header"
- Better to use
span
instead ofh2
to style the second line on the heading. The appearance of the element in the design don't always determine the proper html tag needed. - At the 1100px breakpoint, the cards are touching the left and right gutters
- I'd be mindful of hardcoding widths in px. Instead, use fluid properties (like max-width) and units (like rem)
Hope this helps!
Marked as helpful2@chintriagoPosted almost 3 years ago@emestabillo I appreciate your advice it's very helpful thank you! :)
1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord