Frontend Mentor - NFT preview card component solution

This is a solution to the NFT preview card component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout depending on their device's screen size
  • See hover states for interactive elements

Screenshot

image

Links

My process

Built with

  • HTML
  • CSS
  • Flexbox

What I learned

I learned to use the adjacent sibling selector to make the view icon appear on hover.

.view {
  display: none;
}
.image-container:hover .overlay + .view {
  display: block;
}

Continued development

For future projects I need to focus on using more advanced CSS to create effects.

Useful resources

Author