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

QR Code challenge using HTML and basic CSS

Abhinay Singh Negi•50
@AbhinayNegi
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?

I was able to complete the challenge close to the design. Next time I will more focus on learning about the positioning of the elements.

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

Learned that if an element has padding applied let's say 20px on all sides and if we also apply the border-radius to less than 20px we might not see the rounded corners of that element because, The reason is that the rounded corners are created within the element's border-box, which includes padding. If the border radius is smaller than the padding, the curves fall entirely within the padding and become invisible. Increasing the border-radius allows the curvature to extend beyond the padding and become visually apparent.

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

Q. I am new to the CSS HTML I was somehow able to complete the challenge but I still don't know if this is the correct approach or not. Could anyone help me what could I have done better here?

Q. If I apply padding of 20px to an element and then I apply border-radius: 20px why the border does not appear rounded on my element?

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 Abhinay Singh Negi'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