Submitted over 1 year ago
Stats preview card component using CSS Grid and Flexbox
@Chanawin-kmpn
Design comparison
SolutionDesign
Solution retrospective
Any suggestions or more challenges are welcome, thank you :)
Community feedback
- @0xabdulkhaliqPosted over 1 year ago
Hello there 👋. Congratulations on successfully completing the challenge! 🎉
- I have other recommendations regarding your code that I believe will be of great interest to you.
CSS 🎨:
- Looks like the component has been centered properly. But the issue is the content inside the
body
causes overflow on smaller screens and let people scroll the content, this issue want to be cleared.
- This is just caused by over usage of
margin
property, we can usemargin
if necessary but for desktop version there's no need to use it
- Now set
margin
for thebody
in desktop mode, after setting you can able to see the changes
@media (min-width: 1130px) { body { margin: 0; } }
- Now the overflow of content has been cleared
.
I hope you find this helpful 😄 Above all, the solution you submitted is great !
Happy coding!
Marked as helpful0@Chanawin-kmpnPosted over 1 year ago@0xAbdulKhalid Thanks for the feedback, it helped me to understand the body overflow in mobile mode.
1
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