Design comparison
Solution retrospective
I used rems to make sure that the card and everything in it can be easily scaled up and down in size.
What challenges did you encounter, and how did you overcome them?It was easy.
What specific areas of your project would you like help with?Nothing particular. Any feedback is appreciated.
Community feedback
- @anaiswritingcodePosted 6 months ago
Great solution! I like your approach to the CSS and the semantic HTML markup.
If I had to say something, I'd suggest having a complete CSS reset to avoid possible unexpected behaviors, but everything looks good nonetheless. Keep up the good work!
1@NiloyDas07Posted 6 months ago@anaiswritingcode Can you please elaborate on what you meant by complete CSS reset?
0@anaiswritingcodePosted 6 months ago@NiloyDas07 Of course! A CSS reset is a set of several rulesets that you can paste into your CSS documents to reduce browser inconsistencies and just make everything more uniform across browsers overall. It overrides the default format of a few elements, which can help with unexpected behaviors down the line.
You already had a part of it in your code:
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
However, there are longer CSS resets, which was what I meant by "complete" reset. This one is a good example, although it's also a bit short like the author mentions in the article.
If you check the code of my solution for this same Frontend Mentor challenge, you'll be able to see the CSS reset I applied just at the start of the CSS file.
Marked as helpful1@NiloyDas07Posted 6 months ago@anaiswritingcode Thanks a lot! The article you linked was very interesting. And I checked your solution. It's great. I am excited to apply these concepts in my future projects. :-)
1@anaiswritingcodePosted 6 months ago@NiloyDas07 Glad I could help! Happy coding :)
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