QR Code Solution using html and CSS only, without bootstrap.
Design comparison
Solution retrospective
I only had some trouble with centering the div element vertically as couldn't figure the total height of the body. the developer tool on chrome wasn't helpful in this somehow but at the end of the day I did manage to bring it to centre more or less. let me know how you would do it?
Community feedback
- @Enmanuel-Otero-MontanoPosted 12 months ago
Hello ShadowMagus!
Congratulations on completing the challenge. An easy way to center an element is by applying the following CSS properties to the parent element (in this case the body) of the element you want to center:
display: flex;
justify-content: center;
align-items: center;
Marked as helpful3 - @danielmrz-devPosted 12 months ago
Hello @ShadowMagus!
@Enmanuel-Otero-Montano gave you a very good advice on centering elements. Following the same line of thinking, don't forget to add
height: 100vh
in order to work properly.Also, you might wanna change your body
background-color
to#D6E1F0
. It'll look even closer to the original design!I hope it helps!
Great job!
Marked as helpful2@Enmanuel-Otero-MontanoPosted 12 months agoHello @danielmrz-dev!
I agree 100%.
1@ShadowMagusPosted 12 months agothank you both @danielmrz-dev , I'll definitely work on your and @Enmanuel-Otero-Montano 's suggestions.
1
Please log in to post a comment
Log in with GitHubJoin 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