Design comparison
SolutionDesign
Solution retrospective
When I wrote the code for the QR code component, I stuck only one place when I centered all the components in the middle of the page.
I am unsure about the responsiveness. I wrote the code too, but I am not sure if it is right or not.
what is a good approach to writing the code?
Community feedback
- @aravindhan7Posted over 1 year ago
to centere at the middle of the page
use the below css
body{ min-height:100vh; display:flex; align-items:centre; justify-content:centre; }
hope this is useful for you..
Marked as helpful0
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