Submitted over 1 year ago
Responsive testimonials grid section using CSS Grid
@Mohammedabbas7
Design comparison
SolutionDesign
Solution retrospective
Things that I find difficult:
- the layout is a tiny bit difficult. I created a layout using CSS grid by defining four columns using
grid-template-columns: repeat(4, 1fr);
and spanning. - the border around the image is so difficult I used pseudo-element::after to create the border because the color of the border should have an opacity property. is there any better way to approach this?
please any feedback is welcome, Thanks.
Community feedback
- @VCaramesPosted over 1 year ago
Hey there! 👋 Here are some suggestions to help improve your code:
- For the testimonials, it is best ✅ to to wrap each individual testimonial component in a
figure
element, the individuals information should be wrapped in afigcaption
element and lastly, the testimonial itself should be wrapped in ablockquote
element.
Code:
<figure> <figcaption></figcaption> <blockquote></blockquote> </figure>
More Info:📚
- The names of each individual are headings ⚠️. So they should be wrapped in a
heading
element. Since they are all equal level of importance, theh2
heading will be the best choice.
- Using CSS
grid
withgrid-template-areas
will make things way easier 💯 when building the layout and give you full control of it.
If you have any questions or need further clarification, you can always check out my submission and/or feel free to reach out to me.
Happy Coding! 👾
Marked as helpful0 - For the testimonials, it is best ✅ to to wrap each individual testimonial component in a
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