Submitted 9 months ago
testiomonial grid section using css grid
@Kaung-Thant-Kyaw
Design comparison
SolutionDesign
Solution retrospective
Feedback welcome
Community feedback
- @danielmrz-devPosted 9 months ago
Hello @Kaung-Thant-Kyaw!
Your solution looks great!
I have a suggestion for you:
Your grid is not centered and I went through your code to check the reason, and here it is:
- First: You didn't use
min-height
on the body. - Second: You created 3 grid rows, but you needed only 2.
š Here's your code with some observations I've made:
body { font-size: 13px; font-family: "Barlow Semi Condensed", sans-serif; min-height: 100vh; /* I added this line */ display: flex; align-items: center; justify-content: center; margin: 48px auto; /* You don't need this margin */ } .testimonial-grid { grid-template-columns: repeat(4, 1fr); /* grid-template-rows: repeat(3, 1fr); You can remove this line */ grid-template-rows: repeat (2, 1fr); /* You need only two rows */ }
I hope it helps!
Marked as helpful1 - First: You didn't use
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