Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive testimonial grid

@Dan-Jao

Desktop design screenshot for the Testimonials grid section coding challenge

This is a solution for...

  • HTML
  • CSS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hey, guys!

This is my solution for this project, using CSS grid as proposed.

The biggest challenge encountered while styling was the placement of the quote image between the text and the card. First I tried using position absolute on the image and card content, but the text leaked on the smaller screens. So after researching the problem, I tested using position sticky on the text and it solved. But as I didn't understand the functionality of the property,I preferred to use index-z.

I don't know if the HTML is as semantic as it could be, so I'd appreciate any feedback.

Community feedback

Lucas 👾 104,580

@correlucas

Posted

👾Hello @Dan-Jao, congratulations on your new solution!

The html structure you’ve used here works, but if you want to make this even better, you can replace the <div> you’ve used to keep the blocks and replace with some better html markup and semantic, for example, the main block can be wrapped with <main> and each testimonial card with <article>, then you can use a tag that not everyone knows, for the paragraph containing the quote you can replace the <p> with <blockquote> that is tag the describe exactly its content.

This article from Freecodecamp explains the main HTML semantic TAGS: https://www.freecodecamp.org/news/semantic-html5-elements/

✌️ I hope this helps you and happy coding!

Marked as helpful

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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