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

Bento Grid solution

Rustom0 90

@Rustom0

Desktop design screenshot for the Bento grid coding challenge

This is a solution for...

  • HTML
  • CSS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


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

learned lot about Grid

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

am having problem with mobile version i don't know what to do need help.

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

i would like help for responsive caus everything am tryin its not working and i don't even know why its not working

Community feedback

@Wlfernando

Posted

I don't gonna lie, it seems a little convoluted. So I going to share with you this grid game and a guide.

  • The height with vh unit in body is causing trouble
  • The fr unit refers to fractions so use it preferably with integers. Example: 1fr 1fr means 1/2 for each unit; 3fr 1fr 1fr means 3/5 1/5 1/5 as well.
  • You don't need to wrap within box2 the box2-2, box4, and box5.
  • For each row you can use px in grid-template-row to define the space, like if you use height for each element

With the declaration you have I made a close solution, so you almost there. Just remember that % is related to the measure of parents, vh-vw to the viewport, px is a fixed size, and fr use the available space; you can combine these units in grid-template. Grid is an awsome tool that helps you to avoid wrapping with a lot of divs where the colums is the width and the rows is the height, keep that in mind.

I also did this challenge so you could go and check it with the devTools of your navigator.

Marked as helpful

0

Rustom0 90

@Rustom0

Posted

@Wlfernando thank you so much let me try to fix it

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