Submitted about 2 years ago
Responsive testimonials-grid-section-main using grid
@Deepanshu-5288
Design comparison
SolutionDesign
Solution retrospective
Hi All, Can anyone suggest why my grid divs are not taking the same width that is spanning one column only?
Thanks, deepanshu
Community feedback
- @correlucasPosted about 2 years ago
Hey Deepanshu,
You can use the exact size for this column with
max-width: 1115px
and to make it flexible replace thewidth
you've used withmax-width
. See the code below:main { display: grid; padding: 0.625rem; gap: 1.25rem; max-width: 1115px; /* width: 68.75rem; */ margin: auto; }
Hope this helps, happy coding!
Marked as helpful0
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