Design comparison
Solution retrospective
It looks a touch off on the iPad view. I also had to adjust the padding-left manually for each screen size. If anyone has any suggestions on a better way to do this, please let me know.
Community feedback
- @j3rgusPosted about 1 year ago
Hello Elizabeth Bartholomew.
Another way to do this is to use grid layout with column/row spanning. Deploying this will save you many lines in stylesheet and allow you for a simple way to deploy media queries for responsiveness.
One way to deploy grid would be:
- Center the main component (typically with flex container centering on X and Y axis).
- Display component itself as a grid 2x4 (2 rows, 4 columns) with each person testimonial as an item of the grid.
- Select items inside the grid which you like to span (eg. Daniel horizontally, Kira vertically).
- Add media query with modified grid template (so that the grid displays in one column with all the items) and rearrange each spanned item.
By utilizing the grid you can set a gap between each item which helps you to reduce many margins or padding from within the items itself.
Hope this helps.
0
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