Design comparison
SolutionDesign
Solution retrospective
I don't succeed the size of the card
Community feedback
- @iamjmitchPosted almost 4 years ago
Hi, You're almost there with your CSS. To fix you issue of the gap at the bottom, try the following:
Remove
.card #content{ top: -52.5px; }
Add
.card #content img { margin-top: -50px; }
1@Al11oPosted almost 4 years ago@iamjmitch Thanks a lot ! it works well ! But is this legal to put negative margin ?
0@iamjmitchPosted almost 4 years ago@Al11o absolutely! No different to a negative
top
value. Negatives don't work onpadding
though0
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