Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Practising using Figma

P
innitman 130

@innitman

Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

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

Vishal D. 570

@Hummingcoder

Posted

to make min-height: 100% work give .card-wrapper's parent height too ig

0

P
innitman 130

@innitman

Posted

@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 GitHub
Discord logo

Join 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