Submitted over 1 year ago
QR code component using flexbox and grid
@jeffreylaichunghang
Design comparison
SolutionDesign
Solution retrospective
I found it difficult to center the container vertically. I can only come up with margin-top property. I also couldn't format the two lines of sentence exactly the same way as the preview.
Community feedback
- @slydonut6414Posted over 1 year ago
Hi!! I came across the same problem while using Flexbox. The problem arises because the height of the web page's body is probably automatically set to the size of its content. Try modifying the height of the <body> tag, then it should work.
0
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