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 Card built with HTML and CSS (use of flexbox, figure,...)

David Babatundeβ€’ 200

@davidbabatunde

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


Please give feedback for improvement. I had issues centering it to the page. For some reason, align-items: center wasn't giving me what I wanted. Kindly help point out multiple ways i can improve this.

Community feedback

Account Deleted

Hi David! πŸ‘‹

You are missing the height from the element with the class "contain". That's probably why the align-items: center; declaration is not working.

Try adding this declaration height: 100vh; to container element and see if it helps.

Also, consider using the font-family provided in the style-guide. You should link the 'Outfit' font family from Google Fonts to your html file and then call within CSS.

I hope this was helpful. Keep up! πŸ‘¨β€πŸ’»

0

David Babatundeβ€’ 200

@davidbabatunde

Posted

@kom42ec Thank you very much for your help. I'll upload an update to it as soon as I can.

0
Eduardoβ€’ 910

@KTrick01

Posted

Hi! You can center the card by using flexbox in your body, like this:

display: flex;
justify-content: center;
align-items: center;

Hope that it helps you!

0

David Babatundeβ€’ 200

@davidbabatunde

Posted

@KTrick01 Thank you very much for your help.i actually did this but it refused to work.

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