Stats Preview Card Component with Sass & Flexbox

Solution retrospective
I think I did okay in this one. However, when I reduce the screen size below 1000px, the spacing on either side of the container seem to become unequal and sometimes a horizontal scroll will appear. I tried almost all stack overflow fixes like using overflow-x: hidden in both html and css. Adding 100% width and height to the html or body but the problem doesn't seem to go away. If anyone knows how to fix this, please let me know thanks :)
Please log in to post a comment
Log in with GitHubCommunity feedback
- @AliceMenzie
Hi Devika, I'm not sure but did you try adding a min-height/width you could try adding it to the
card
or to theimage-section
/content-section
this might make it less responsive but maintain its shape when resizing. ☀️
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