Not Found
Request path contains unescaped characters
Request path contains unescaped characters
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

1bi7eβ€’ 10

@1bi7e

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


After this project i still have one question without an answer. Which unit should i use, pixels or REM. I read about differences and as i understand REM is based on the root size of font so it will be more "responsive" if user have some extra settings in the browser like bigger fonts. But i dont know if its commonly used by other people and i think i should consider this couse my code has to be readable and easy to edit for others and i will read a tone of code in the future written by others.

Community feedback

P
Quentin Lopesβ€’ 30

@QLopes22

Posted

In my experience Rem is the go to for fonts but when I use it for widths and heights, I get some funky margin that shifts everything to the left side of the screen.

Does anyone else have that happen to them?

1
hitmorecodeβ€’ 6,230

@hitmorecode

Posted

For fonts it's best to go with rem and not pixels, rem makes it so that a font is scalable with pixels is not possible. As for other dimensions like width, height, padding, margin. You can use whatever you feel comfortable with.

0

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