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

cndofx 20

@cndofx

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

Ayako 40

@Ayako-Yokoe

Posted

This is great. You can center the card using either of these methods:

Using Flexbox in the body: body { display: flex; justify-content: center; align-items: center; /* other styles */ }

Or, apply positioning styles directly to .card: .card { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); /* other styles */ }

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