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

QR code component

Pirate 170

@ima9gh

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?

I did this exercise! there are many things

What challenges did you encounter, and how did you overcome them?

In the middle of the vertical fold, why is the top and bottom margin: auto not possible? I just gave top margin

Community feedback

P
Koda👹 3,810

@kodan96

Posted

hi there! 👋

Instead of using margins, you can center your content with Flexbox if you apply these to the body tag:

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

Hope this was helpful 🙏

Good luck and happy coding! 🙌

0

Pirate 170

@ima9gh

Posted

@kodan96 I will definitely use it! thank you☺

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