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

Responsive QR code using Flexbox and EM/REM

@CuriousFullStacks

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


My only issue here is that I couldn't get the "M" in mentor to be a bit before the word "Scan" like in the preview. I'm not sure why.

Community feedback

P
Yasmine 700

@Yasmine10

Posted

Hi @CuriousFullStacks

When you remove the width: 70% in your <p> element and add padding-inline: 2rem; , the text should look the same as the design.

Hope this helps 😊

Marked as helpful

1

@CuriousFullStacks

Posted

@Yasmine10 Thank you! I never knew about this property.

0
P
Yasmine 700

@Yasmine10

Posted

@CuriousFullStacks There are also other ways to do the same like padding: 0 2rem; or padding-left: 2rem; padding-right: 2rem; Those do the exact same thing, I just prefer using padding-inline

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