Submitted about 1 year ago
NFT Preview Card component with Box-shadows and Hover effects
@Himanshu-196018
Design comparison
SolutionDesign
Solution retrospective
Used Box-shadow properties to add multiple shadows.
From my solution:
- You can understand how to center a component with just position and transform properties.
- cool hover effect on images using pseudo classes/elements selectors
Feedbacks and general tips are welcome..
(Note: contains no animation, built with HTML and CSS only)
Community feedback
- @hitmorecodePosted about 1 year ago
Nice well done. Just a few tips
- You don't need to add
width: 100%;
on the body. By default the width of the body is always 100%.
.section { display: flex; /* flex-wrap: wrap; */ /* you don't need this */ column-gap: 10px; align-items: center; /* add this line to horizontally align the content */ }
Marked as helpful1@Himanshu-196018Posted about 1 year ago@hitmorecode thanks for the tips.
- I will remember to not include width on the body
- Actually I always try to use align-item property first, if its not working only then I try other ways to center the elements.
I would like if you guide me more like this in future.
0@hitmorecodePosted about 1 year ago@Himanshu-196018 glad I could help. I'll do my best to help 👍
1 - You don't need to add
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