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 page

Damianβ€’ 150

@damiandev22

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 unit should I use for the radius of the card and the img?

Community feedback

Lucas πŸ‘Ύβ€’ 104,420

@correlucas

Posted

πŸ‘ΎHello Damian, congratulations for your new solution!

Answering your question:

Its better you use px/rem instead of % for the radius, because if you use percentage this will consider the elements size and the border radius will vary depending of the element. Think about using relative units as rem or em instead of px to improve your performance by resizing fonts between different screens and devices.Anyhow, if we want a more accessible website, then we should use rem instead of px. REM does not just apply to font size, but to all sizes as well.

✌️ I hope this helps you and happy coding!

Marked as helpful

0

Damianβ€’ 150

@damiandev22

Posted

@correlucas, I was hesitant about using rem for angles. Thanks a lot.

1
romilaβ€’ 3,570

@romila2003

Posted

Hi Damian,

Welcome to the frontend mentor community and congratulations πŸŽ‰ for completing this challenge, it was a great attempt. I found some issues I want to address:

  1. It is best practice to wrap the main content within the main tag which would ensure that your content is wrapped within the correct landmarks e.g. <main class="container"></main>
  2. You should also wrap your footer within the footer tag e.g. <footer class="attribution></footer>
  3. To center the card in the middle, you need to remove the margin property that is set on .card

Overall, great attempt and wish you the best for your future projects so keep coding πŸ‘.

Marked as helpful

0

Damianβ€’ 150

@damiandev22

Posted

@romila2003, Noted. This is a much appreciated feedback. thank you.

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