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 component using CSS

LiBee 390

@Li-Bee

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


Hi All

Would appreciate feedback on this please.

On the wrapper i did max-width: 22rem and width: 90% but did not seem to work if did max-width:20rem and width:90% because when i did this the width became to small it was c280px instead of c320px per the design.

Can someone explain this to me? I still got the width right but would like to know why i had to do 22rem instead of 20rem for this would to work.

Any other feedback on my code would be appreciated please.

Community feedback

P
Grace 27,950

@grace-snow

Posted

The section element isn’t needed on this. Here’s a great article about how it’s ok to use divs https://www.scottohara.me/blog/2022/01/20/divisive.html

Marked as helpful

2

LiBee 390

@Li-Bee

Posted

@grace-snow thanks Grace will definately take a look. Do you possibly know my answer to the question above?

0
Han 340

@hcxweb

Posted

Hello LiBee, Well done on this challenge! It seems like after you modified the html and css file, you didn't update your solution in frontend mentor portal, so width: 90% is not showing up when I checked the website. Because you set max-width to 20rem, which is already very narrow, I don't think setting width of 90% actually matters for responsiveness.

0

LiBee 390

@Li-Bee

Posted

@hcxweb Han would you mind checking again please - i have just added it. Apologies was not coming through for some reason. Its on the article element.

0
Han 340

@hcxweb

Posted

@Li-Bee I saw your updated code now. I would just set max-width to 20rem and remove width of 90%. Give it a try.

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