@ErayBarslan
Posted
Hey there, excellent solution! It's almost pixel perfect and responsive. To answer your question, both flex and grid has their use cases. In general you can create a responsive layout with both with no issues as they can achieve similar things. When you're working with 1 column or row layout, it's generally easier to use flexbox and there are certain things grid can't achieve.
For example there are 3 items on the page and we want them to wrap to a new row when the screen gets smaller. You can achieve it with both flex and grid; however it won't possible to center the item that's wrapped to new row with grid while flex can do. (* Won't be the case when they're all wrapped since there is just 1 row*)
Although when the layout has several columns/rows , it's much more convenient to work with grid. Flex will just makes things harder. My advice would be to practice both and in time you'll decide easier on which to use when. Happy coding :)
Marked as helpful