
Responsive stats preview card using CSS Flex
Design comparison
Solution retrospective
Throw suggestions if need to improve the content, I am looking forward to learn
Community feedback
- @pikapikamartPosted over 3 years ago
Hey, awesome work on this one. Layout in desktop looks good, though it is smaller, the mobile layout looks fine but some sections have big white-spaces and like what Fluffy Kas said, a bug occurs.
Some suggestions would be:
- Always have a
main
element that will wrap the main content of the page. The.container
selector could usemain
element instead ofdiv
. - Avoid using
height: 100vh
on a large container like the.container
selector. This makes the element's height only limited to the remaining viewport/screen's height. Remove this or replace it withmin-height: 100vh
. - Always have an
h1
on a webpage. Theh2
text on the left side could be theh1
. - The
.stat
selector could have usedul
element, since those are "list" of information about the user, or andl
element. - The text like
10k
314
shouldn't be heading element, since it doesn't really add any extra information if it were a heading tag like this one. Just usep
tag on it.
Aside from those, just the bug when resizing. Still, great job on this one.
Marked as helpful1 - Always have a
- @FluffyKasPosted over 3 years ago
Hey, your solution looks pretty fine but do check it around 700-800px! I believe a reason it looks a bit funny because you have a fixed height of 100vh on the container.
Marked as helpful1@sreehariv-codePosted over 2 years ago@FluffyKas Thanks for reporting the bug. I have resubmitted with a fix. I hope it works well. If there is anything needed to be improved in the code, looking forward to make the changes to the same
0@sreehariv-codePosted over 2 years ago@FluffyKas Thanks for reporting the bug. I have resubmitted with a fix. I hope it works well. If there is anything needed to be improved in the code, looking forward to make the changes to the same
0@sreehariv-codePosted over 2 years ago@FluffyKas Thanks for reporting the bug. I have resubmitted with a fix. I hope it works well. If there is anything needed to be improved in the code, looking forward to make the changes to the same
0 - @sreehariv-codePosted over 3 years ago
Thank you for the suggestions. Looking forward to make the changes and to hear another set of suggestions. I have just only started using frontendmentor. I think it will help me to learn from my mistakes to improve the knowledge.
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