Design comparison
Community feedback
- @HassiaiPosted almost 2 years ago
Replace <div class="card"> with the main tag and <p class="title hover-effect"> with <h1> to fix the accessibility issues. To center .card on the page, add min-height:100vh; display: flex; align-items: center: justify-content: center; to the body. instead giving .card a margin value.
in the desktop design, give .card a fixed width eg. width: 300px; instead of a percentage width.
you forgot to add a media query for the mobile design, in the media query, give .card a percentage width of 80% or 90%.
Hope am helpful. HAPPY CODING
0 - @VCaramesPosted almost 2 years ago
Hey there! 👋 Here are some suggestions to help improve your code:
- To properly center your content to your page, you will want to add the following to your
Body
Element (this method uses CSS Grid):
body { min-height: 100vh; display: grid; place-content: center; }
More Info:📚
[Centering in CSS][https://moderncss.dev/complete-guide-to-centering-in-css/]
- Your **HTML should have ** a
main
element that will assist in identifying the main content of your site.
More Info:📚
- The NFT
alt tag
description needs to be improved upon. You want to describe what the image is; they need to be readable. Assume you’re describing the image to someone.
More Info:📚
https://www.w3.org/WAI/tutorials/images/
- Wrap the "NFT image", "Equilibrium #3429" and "Jules Wyvern" in an
anchor tags
. The anchor tag will allow users to click on content and have them directed to another part of your site.
More Info:📚
- Your
attribution
should be wrapped in afooter
element instead of adiv
.
If you have any questions or need further clarification, feel free to reach out to me.
Happy Coding!🎄🎁
0 - To properly center your content to your page, you will want to add the following to your
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