Design comparison
SolutionDesign
Community feedback
- @ShohanojjamanPosted over 1 year ago
Hey @MohammedAlhaig98, Your design is looking good. But there are some issues on your design. Small improvements can be made though.
- There is no semantics present in your solution
height
is extremely restrictive and might cause overflow issues, therefore it is better to usemin-height
. Also forwidth
.width
will bemax-width
- Since this component involves scanning the QR code, the image is not a decoration, so it must have an
alt
attribute. Thealt
attribute should explain the purpose of the image. E.g.alt="QR code to frontendmentor.io"
Example:<img src="/images/image-qr-code.png" alt="QR code to frontendmentor.io">
I hope you find this helpful 😄 Above all, the solution you submitted is great !
Thank you,
Shohan
Marked as helpful0@MohammedAlhaig98Posted over 1 year ago@Shohanojjaman Thanks for your advice but for point two i don't understand how to use min-height
0@ShohanojjamanPosted over 1 year ago@MohammedAlhaig98 There is an example-
body { max-width: 100%; min-height: 100vh; } img{ max-width:100%; }
If you want to know more about this you can search on Google or other sites.
Thank you,
Shohan
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