NFT Preview Card Component Challenge Using HTML/CSS
Design comparison
Solution retrospective
Any feedback regarding the accessibility and responsiveness of the webpage will be appreciated. I would also like to know whether my active states are correct!
Also, is my use of Label tags correct here? Or are they only supposed to be used in web-forms? Using label tags made it easy to attach text next to the icons.
Also, using <span> tag added a weird spacing between the text and i had to use negative margin to fix it. Any ideas on why that happened?
Community feedback
- @BernardusPHPosted over 2 years ago
-Hey RIVERCODES. Yes the use of the
label
element is mostly/only used for forms like inputs or buttons. I looked at your code and out of curiosity, I changed thelabel
element to adiv
and nothing happened, I assume because you used classes to attach and align everything, so try to replace thelabel
with adiv
and see if it is still the same.-Also I recommend encapsulating the
Creation of Jules Wyvern
in a<p></p>
bc when the screen size decrease, the wordsCreation of
and thespan
separate.-Hope this helps
Marked as helpful1@riverCodesPosted over 2 years ago@Artosh-afr Wait haha you're right :P For some reason, it didn't cross my mind that divs could contain text just like labels (I had just learnt about labels when I made this)
And thanks for the
Creation of Jules Wyvern
suggestion, I was wondering how to fix that as well! It worked :D1
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