theCavyDev• 510
@okeke-ugochukwu
Posted
This looks great. The only way to get better is practice.
I noticed you explicitly defined the card width. I'd suggest you use more or implicit or relative units like %.
So instead of:
.main-content {
width: 315px
}
You could do :
.main-content {
width: 90%
max-width: 315px
}
This way, the card is responsive on small screens but does not exceed 315px. So it still looks good on bigger screens. (that's if you're taking the mobile-first approach)
But nice job still 🚀
Marked as helpful
0