Design comparison
Solution retrospective
Here's my NFT card! This was a very cool challenge to work on. Anyone have tips on how to get the card centered more vertically without using margin?
Community feedback
- @UrbanskiDevPosted about 2 years ago
Hello Gp0710 !
First of all, congratulation for finishing this challenge !
To center your card without using margin, I would recommend you to watch more about CSS Flexbox, which is a powerful feature, and allow you easily to center an element.
A very basic exemple of how to do it in your css file :
container{ display:flex; justify-content:center; align-items:center; }
I also give you a useful link, more like a cheatsheet about CSS Flexbox to help you to understand it better : https://css-tricks.com/snippets/css/a-guide-to-flexbox/
Good job, and keep going !
1
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