Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 9 months ago

QR Code Component using CSS Flexbox

pure-css
P
Josh Kahlbaugh•540
@Joshk7
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?

Styling the main component containing the QR code was the best part of this project. Once applying flex to the body, everything else fell into place.

body {
display: flex;
justify-content: center;
align-items: center;
}
What challenges did you encounter, and how did you overcome them?

The main challenge was trying to get the right measurements for padding so that the container held the QR code correctly. Once I downloaded the Figma file to look at the design in more detail it was easier to work out the details.

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

I'm specifically looking for help with accessibility if there's any other components I could add to help with that.

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 Josh Kahlbaugh'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

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