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

Mobile First design for stats card

Ayomide Kayodeβ€’ 120

@AyomideKayode

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


Built this card using CSS customs properties, flex and grid. My image placement in the desktop view might be a bit unorthodox, lol. Reviews and feedback would be appreciated.

Community feedback

Gbenga Bayodeβ€’ 140

@bammytech1

Posted

Hi @AyomideKayode Here are some suggestions to help improve your code:

This challenges requires the use of two images πŸŽ‘ for different breakpoints. The picture element will facilitate this. Here is an example of how it works: EXAMPLE

Syntax:

<picture> <source media="(min-width: )" srcset=""> <img src="" alt=""> </picture> More Info:πŸ“š

https://www.w3schools.com/html/html_images_picture.asp

The only heading in this component is the β€œGet insights that help your business grow” everything else will be wrapped in a paragraph element. The statistics at the bottom are a list, so it should be built using an unordered List element. More Info:πŸ“š

MDN <ul>: The Unordered List element

set min-height: 100vh; for better responsiveness. For improved accessibility πŸ“ˆ for your content, it is best practice to use em for media-queries. Using these unit gives users the ability to scale elements up and down, relative to a set value. If you have any questions or need further clarification, feel free to reach out to me.

Happy Coding!

Marked as helpful

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