Design comparison
Solution retrospective
It was a great experience building this component, however I had a lil bit of struggling while making it responsive with media queries and that.I noticed something too for CSS is when I assign a min-height to a div container and then assign a height of 100% to the child div it doesn't apply idk why that. It will be very helpful if someone could explain that to me, thank you
Community feedback
- @ShivangamSoniPosted over 1 year ago
When using
Percentage
the children element's size is dependent upon the parent. When we set amin-height
on parent &Percentage
on children, the children automatically get setup asauto
.You can see more about it in the CSS Spec. Have a look at Examples: 5 & 6
Marked as helpful1
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