Stats Preview Card Component, view with Desktop and Mobile devices
Design comparison
Solution retrospective
I tried using grid but I hope my flex is OK for the display. If there is anything else you would love me to know, please let me know. I am open to correction.
Community feedback
- @vanzasetiaPosted about 2 years ago
Hello, Oyasi! 👋
I would think flexbox is the perfect thing to do for this layout. Using grid is possible but might not be necessary since it is a one-dimensional layout. 🙂
One suggestion I have is to use CSS to uppercase the text. The uppercased word in the HTML might be spelled by the screen reader (spelled letter by letter).
I would recommend taking a look at the page without any styling. Then, see if you could understand the page content. If you are not able to understand the page content then there might be something wrong with the HTML. For example, if you use a
div
instead of abutton
for something clickable then when you disable the CSS, the page content will not make sense. Another example will be if the page content should be rendered as a list of items but you are usingp
elements instead. As a result, the content will not get the appropriate browser's user agent stylesheet.That's it! I hope this information is useful! 🙂
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