Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Semantic HTML5 markup CSS custom properties Flexbox Media query

@SAAJEVES

Desktop design screenshot for the Stats preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Rate the responsiveness to different screen sizea

Community feedback

BasemAmr 120

@BasemAmr

Posted

Greetings @SAAJEVES,

congratulations on finishing the challenge, great work 👏

I have some tips to help you create a better responsive card:

  • First, it's preferable to use "classes" instead of "id"s to use in the stylesheet, that's because of several reasons mentioned in this article.
  • also, the > CSS selector has it's use cases, you can read on them in MDN here.
  • the most annoying problem for me when I first tried to make a responsive website was that I set the width an height of an element in "pixels", and this is not correct because maybe my friend's screen size is bigger or smaller than mine, so the website will be different from what I coded for him

solution ?? I would suggest that you read this article, and this also, they are relative so if you understand the frist, it won't take much time to understand the second.

  • finall, try to use meaningful class names in addition to wirting comments so you can navigate through and read your code easily.

and that's it, I hope my tips will be useful to you, keep up awesome work, practice more and happy coding 😀

0

Please log in to post a comment

Log in with GitHub
Discord logo

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