Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 1 year ago

Bento grid using grid-template-areas

Filip Anđel•120
@filipangel
A solution to the Bento grid challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I'm proud I got it working at all. This one took me quite a while not only because of the Bento layout but because the order of the cards changes in the mobile design.

What challenges did you encounter, and how did you overcome them?

I used grid-template-areas to make the cards follow the Bento layout, as well as to easily re-order them for the mobile design.

What specific areas of your project would you like help with?

I would like to learn about other ways to implement Bento box layouts other than using grid-template-areas. Also, I'm sure there's an easier way to make images that overflow out of their parent element. I had a lot of trouble making the overflowing images play along with the remaining content of the element.

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 Filip Anđel'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