Not Found
Request path contains unescaped characters
Request path contains unescaped characters
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

Flexbox and grid to align eveything

@elemenceOR

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 did you find difficult while building the project?

Which areas of your code are you unsure of?

Do you have any questions about best practices?

Community feedback

@devmousa

Posted

Impressive work 🔥

you did a very nice work

but I wondered, why do you need margin-top: 25vh; in the parent class ?

Best of luck to you ✨

Marked as helpful

1

@elemenceOR

Posted

@devmousa thank you for the feedback. I wanted to center the entire thing to the page. When i use flexbox it only centered vertically. Thats why i use a top margin to center it vertically. But i think i got the distance wrong. Is there any other way to do it ?

0

@devmousa

Posted

@elemenceOR you can add min-height: 100vh to the flex element so you can centerr horizontally

Marked as helpful

0

@elemenceOR

Posted

@devmousa thank you o much. It worked

0

@devmousa

Posted

you're welcome @elemenceOR

good luck in the next one ✨

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