Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 2 years ago

Static NFT card placement using flex and position

bem, animation
alphaura•80
@alphaura
A solution to the NFT preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


It was an interesting project to work on. Gave me some mental spark to actually place the card itself spot-on in the middle, and decided to give it a day while I was reflecting on the design itself.

Come the next day, I understood what I was doing incorrect, visualised the designed and structured the HTML accordingly, and used flex to position the card in the center.

Found a bit of difficulty on how to put the background and svg on the image upon hover due to not being used to this animation, but after some research and according changes, I understood how I could do it, and seems like I managed.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on alphaura's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License