Design comparison
Solution retrospective
Card made with CSS, HTML and JS.
I would appreciate if you could read the code and provide your valuable feedback to improve the code.
Thanks.:)
Community feedback
- @ChamuMutezvaPosted over 2 years ago
Nice work Pradeep Saini. Your solution looks good. You can polish it up a bit to make it about the same size on desktop, It looks a bit shorter. Interesting also on the use of
inline-size: 100vw;
, something that i wasn't aware of. Nicely done with thepicture
element, although i would encourage thesource
to be self closing . Onalt
values , i would also recommend values that are descriptive - that can be of great help to assistive technology users. Values such asalt="card icon"
are of no help to people who rely on assistive technology. If the image is just decorative, thealt=""
is sufficient. .Marked as helpful0@pradeeps4iniPosted over 2 years ago@ChamuMutezva Thanks for reading the code.
You're right, i need to work on the desktop mode. It is shorter than the solution.
I wrote "card icon" only for the sake of writing. I'll have to take care to write descriptive alts from next time.
If you want to learn more about inline-size and similar properties. Read about the internationalization css. It is very helpful to write flexible css code which can support various writing modes..
0
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