@MelvinAguilar
Posted
Hello there π. Good job on completing the challenge !
I have some suggestions about your code that might interest you.
CSS π¨:
- To vertically center your element, set a height for it. A defined height is essential for vertical centering. Additionally, you can eliminate the "margin" property in the
.box
element since it's redundant when using "align-items" and "justify-content" properties for horizontal and vertical centering. Try these changes:- Add a "
min-height: 100vh
" property to your "#container
" selector to establish its height. - Remove the "
margin: 15%
" property from the ".box
" as it's no longer necessary.
- Add a "
Alt text π·:
- The
alt
attribute should not contain the words "image", "photo", or "picture", because the image tag already conveys that information.
-
The
alt
attribute should explain the purpose of the image. Uppon scanning the QR code, the user will be redirected to the frontendmentor.io website, so a betteralt
attribute would beQR code to frontendmentor.io
If you want to learn more about the
alt
attribute, you can read this article. π.
I hope you find it useful! π Above all, the solution you submitted is great!
Happy coding!
Marked as helpful