Design comparison
Solution retrospective
Hi, I implemented CSS Grid in the following way:
- Designed for the Mobile first as per design requirements.
- In between the Mobile and the Desktop design I add the following code:
grid-template-columns: repeat(auto-fit, minmax(327px, 0.75fr))
so as to adapt to the screen viewport width. - Designed for the Desktop as per design requirements; placing the grid items explicitly and then using the CSS
transform
property to achieve the desired look.
Please let me know, if my approach was correct! Thanks in advance!
Community feedback
Please log in to post a comment
Log in with GitHubJoin 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