Design comparison
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
- @bammytech1Posted almost 2 years ago
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 helpful0
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