Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 2 years ago

Responsive stats card component

Melaku Alehegn•260
@MelakuAlehegn
A solution to the Stats preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


I have tried to make the page as responsive as possible by writing media query for 3 screen sizes. My questions

  1. which is better for the image on the left, putting an empty div on the html and filling it with image using url(), which I did because it is easier to switch to another image for mobile view, or actually putting img tag on html, which I don't see any methods to switch to another img when the screen size is smaller.
  2. does the view change to mobile when the screen is below 375px or does it end there? I couldn't understand where to start and end my media query from the style guide file.
Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Melaku Alehegn's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License