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

P

@l-white

Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

@Emoji123-s

Posted

Hi @l-white, very well done with the project! It looks amazing. I noticed a "P" at the top right corner of your image, so I'm guessing you're a pro member, meaning you have access to figma files and such. Previewing the website, the entire container element spans to the right, and I know we are not dealing with responsiveness at the moment so I wouldn't talk about that. The positioning issue could be fixed with any one of these 3 ways

  1. Absolute Positioning: position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);

  2. Flexbox: flex-direction: column; align-items: center; justify-content: center;

  3. Margin: margin-left: auto; margin-right: auto;

With this, your container element should be aligned properly. Amazing work you've done here, and I can't wait to see you try more :)

0

@DanijelAdrinek

Posted

@Emoji123-s that wouldnt help because the card is already in the middle of the body, the issue is that the margins on the body were not removed, causing the body to shift a little, to perfectly center the card, the only property necessary would be:

body { margin: 0; }

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