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

@N4thxn

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


I tried for awhile to nail the sizing as that's something that I've been struggling with a lot. If you have any tips or pointers please comment them! I think github pages shifted my box to the right a bit so if its messed up I'm sorry.

Community feedback

@lucasbsand

Posted

Your solution is very faithful to the example. If you don’t mind, I would like to give you two suggestions that could add more value to your project (one of them is valid even for future projects)

  • First, perhaps increasing the font size of the text in the h3 and p tags could make your QR code even more similar to the example

  • To calculate the ‘border-radius’ of a child element whose parent has a padding (as is the case with the image with the QR code), you should do the following: ‘parent-border-radius’ - ‘parent-padding’ = 'child-border-radius'. This will make the child have a border radius that is more consistent with that of the parent

Note: this text was translated using an artificial intelligence, since I am not completely fluent in English, sorry if it is confusing what I meant to say

Marked as helpful

0

@N4thxn

Posted

@lucasbsand thank you for your response! I was unaware of the border-radius trick you just taught me. I will be sure to use it in future challenges!

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