Skip to content
Submitted over 1 year ago

Bento grid using grid-template-areas

LVL 2
@filipangel
A solution to the Bento grid challenge

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

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