Design comparison
SolutionDesign
Community feedback
- @denieldenPosted over 2 years ago
Hi Watts, great work on this challenge! 😉
Here are a few tips for improve your code:
- to make it look as close to the design as possible add
background-size: contain
to body - remove all
margin
from.container
class because with flex they are superfluous - add
min-height: 100vh
to.container
class because Flexbox aligns child items to the size of the parent container - add
align-items: center
to.container
class center the card vertically - add
transition
on the element with hover effect - instead of using
px
use relative units of measurement likerem
-> read here
Overall you did well 😁 Hope this help!
Marked as helpful1 - to make it look as close to the design as possible 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