Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

QR code component using html and css

Ken•160
@ubcyukiny
A solution to the QR code component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


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

Most proud of the completion of the project.

What challenges did you encounter, and how did you overcome them?
  1. Margins and paddings were confusing at first, but by using Google DevTools, hovering on the computed panel, makes it easier to understand and debug

  2. Figuring how to center the QR Code card component inside the body. Tried multiple solution from stack overflow, for eg. margin: auto, which only centers horizontally and other solutions like

body {
   display: flex;
   justify-content: center;
   align-items: center; 
}

Stumbled on adding height:100vh, which seems to fix the issue.

What specific areas of your project would you like help with?

I need to work on my understanding of the display property and viewport unit. Would also appreciate some feedback on my coding style!

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Ken's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License