Aravindhan• 320
@aravindhan7
Posted
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 helpful
0
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?
@aravindhan7
Posted
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 helpful
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