Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 6 months ago

Responsive bento grid layout

Lutfi Ismail•150
@lutfiismail52
A solution to the Bento grid challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


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

At first I had quite a hard time making how an image that was larger than its wrapping element could be cut off from the part that came out of the wrapping. I have tried using common methods such as adding the overflow: hidden; property, but that didn't work. Until finally I found the clip value for the overflow property which functions to cut the part of the image that comes out/passes the wrapping element.

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

I'm looking for guidance on how to implement the .card-3 section so that the image inside it behaves as expected. Specifically, on wide screens (desktop view), I want the image to have width: 100%, but with the lower part of the image being cropped, as shown in the design reference provided in this project.

I'm currently unsure how to achieve this layout behavior for the .card-3 element and would really appreciate any help or suggestions.

Thank you in advance for your time and support! 🙏🙏.

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 Lutfi Ismail'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