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

@AhmedElshennawi

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


This is my first commit, Kindly advise!

Community feedback

@mikej321

Posted

Hello there,

Great job on your project! One thing that may help is changing the width and height of your body. Currently, it is set to 1440px as the width and 1000 as the height. I would change the width to width: 100vw and height to height: 100vh. That will center your project instead of having it at the bottom. I would get rid of the .background container as it's not needed.

Here is the code

body { font-family: "Outfit", sans-serif; width: 100vw; height: 100vh; justify-content: center; align-items: center; background-color: hsl(212, 45%, 89%); display: flex; flex-direction: column; }

This will center the card perfectly and get rid of the scrolling.

Hope this helps and Happy Coding

Michael Johnson

Marked as helpful

0

@AhmedElshennawi

Posted

@mikej321 Dear Mr. Michael, Your comment is very useful, it's my first page, and the next is better, thank you very much

0

@mikej321

Posted

@AhmedElshennawi I look forward to seeing the next page! If you need any help, feel free to reach out to me!

Marked as helpful

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