Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

NFT preview card using basic css

impure 40

@z0dded

Desktop design screenshot for the NFT preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I saw that there is a box-shadow in this project, but i didn't know to replicate it.

What should have I done?

Community feedback

Kimue 200

@dratinixgithub

Posted

I just noticed that, and looks so weird to be a feature. Anyway, i did something to 'add' that Try to use this web app to create the shadow blur effect that you want.

https://html-css-js.com/css/generator/box-shadow/

Then, copy the css code that gives you and put it on a new .shadow class in the style. Finally, add shadow class to your container class in the main

Ex: <div class="container"> turns into ---- <div class="container shadow">

1

@r-mayer

Posted

Hey! Just to contribute:

there is a box-shadow, and the tips that @Kimue said are very useful.

In my case, I put the box-shadow property directly in my '.card' class (the container of the card, in my code - but Kimue's solution is more interesting to be reused throughout the code), and i used the following values:

box-shadow: 1px 2px 15px hsla(216, 66%, 8%, 0.5);

i choose these values just looking for the design picture. You can try e see if you like the result

0

Please log in to post a comment

Log in with GitHub
Discord logo

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