Design comparison
SolutionDesign
Solution retrospective
Should I using absolute unit for height in my card??
Community feedback
- @YazdunPosted about 3 years ago
Hello and congrats on finishing your first challenge ! Here are my suggestions :
- Use
img
tag instead of usingsvg
itself in your html. - Give
border-radius
and thenoverflow:hidden
to parent element instead of givingborder-radius
to the children. - I noticed you haven't used background image, You must use
background-image
onbody
- give
transition
to the element itself, not to thehover
selector, By givingtransition
to element itself, It will remain smooth even on mouse leave ! - give
width:100%
to the card and thenmax-width: 350px
, so you make sure your design looks good on very small screens.
✅ Also I opened a pull request to your github repository which will fix some of these issues.
I hope this helps !
Marked as helpful0@N1CoderPosted about 3 years ago@Yazdun Thank you so much for your suggestions, that will help me to improve my code.
0 - Use
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