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

Component to display QR Code using HTML and CSS

Juriya 140

@juriya

Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

MrLanter 140

@MrLanter

Posted

Hi, congratulations for this nice work and for the efforts that have been made!

I think I can give you some suggestions for improvements:

For centering elements, you’re using absolute positioning, which works, but I recommend trying Flexbox for a simpler solution:

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

I noticed you’re using rem for text sizes, which is great. However, I saw a px size for <p> elements. If this was intentional, ignore this note:

body p {
    font-size: 15px;
}

I hope this helps! Good luck with your project and have a great day!

Marked as helpful

1

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