Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 5 years ago

Responsive grid testimonials using flexbox, CSS grid and BEM

Astrid•100
@astridv
A solution to the Testimonials grid section challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hi guys! 😄

This is my first time trying out BEM so extra interested in getting some feedback on that ✨ I really liked it at first as I didn't have to worry about what to name my classes, but I also got confused by some aspects of it; like how do you deal with margins if you aren't supposed to place it inside blocks? 🤷‍♀️ I also ended up with some excessively long class names for my desktop styles 😅 For reference, I tried to follow the BEM convention as outlined by CSS Tricks in this article.

Edit: additional question after I saw the HTML validation that is complaining about the lack of headings in my sections and article 🙈 I don't think it makes sense to have headings inside each section in this case (but please let me know if you think otherwise!). So would it be better to just divs instead of sections in this case?

Any general feedback on the solution is, of course, also very appreciated 😊

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Astrid's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License