Design comparison
SolutionDesign
Solution retrospective
It was easy. The only difference I think is the page's background image
Community feedback
- @Kamlesh0007Posted over 1 year ago
Hey there! I noticed that you're looking to add a background to a div on your page. Adding a background can help make your content stand out and improve the overall design and aesthetics of your page.
To add a background to a div, you can use the background property in your CSS. Here's an example code snippet:
.qr { height: 100vh; width: 100%; background: hsl(212, 45%, 89%); display: flex; justify-content: center; align-items: center; }
0 - @0xabdulkhaliqPosted over 1 year ago
Hello there 👋. Congratulations on successfully completing the challenge! 🎉
- I have other recommendations regarding your code that I believe will be of great interest to you.
QR iMAGE ALT TEXT 📸:
- Since this component involves scanning the QR code, the image is not a decoration, so it must have an
alt
attribute.
- The
alt
attribute should explain the purpose of theimage
.
- E.g.
alt="QR code to frontendmentor.io"
<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 !
Happy coding!
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