NFT Preview Card

Solution retrospective
I did not have the other picture, so I could not change the image when hovering.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @MelvinAguilar
Hello there 👋. Good job on completing the challenge !
- The hover state of the image is only an icon that is downloaded with the starter files and is called "icon-view.svg", you can use the pseudo-selectors
::before
and::after
to add the image and an overlay color.
CSS 🎨:
- The
width: 100vw
property in thebody
tag is not necessary. This will create a horizontal scrollbar on some devices. Also, thebody
tag is a block element and it will take the full width of the page by default.
- Use
min-height: 100vh
instead ofheight: 100vh
. Theheight
property can cause your component to be cut off on small screens, such as a mobile phone in landscape mode.
CSS Reset 🔄:
-
You should use a CSS reset. A CSS reset is a set of CSS rules that are applied to a webpage in order to remove the default styling of different browsers.
CSS resets that are widely used:
I hope you find it useful! 😄
Happy coding!
- The hover state of the image is only an icon that is downloaded with the starter files and is called "icon-view.svg", you can use the pseudo-selectors
Join 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