Design comparison
Solution retrospective
It took me a while, but I liked learning how to use the dev mode in Figma and translating this to CSS. The key was starting with the HTML.
What challenges did you encounter, and how did you overcome them?I'm a little unsure why min-height: 100% didn't work for the .card-wrapper and I instead needed min-height: 100svh.
The body has been set to min-height: 100svh so I thought setting min-height on body's child (i.e. .card-wrapper) to 100% would inherit 100svh?
What specific areas of your project would you like help with?I'm a little unsure why min-height: 100% didn't work for the .card-wrapper and I instead needed min-height: 100svh.
The body has been set to min-height: 100svh so I thought setting min-height on body's child (i.e. .card-wrapper) to 100% would inherit 100svh? Would be grateful for any help!
Community feedback
- @HummingcoderPosted 4 months ago
to make min-height: 100% work give .card-wrapper's parent height too ig
0@innitmanPosted 4 months ago@Hummingcoder Many thanks for your comment. I guess what's puzzling me is that .card-wrapper's parent is <body>, and body is set to {min-height: 100svh;} in the reset.css. It feels like .card-wrapper isn't "seeing" its parent <body>'s height for some reason, or I've made some other error. If you have any ideas I'd appreciate it :)
0
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