QR code component

Please log in to post a comment
Log in with GitHubCommunity feedback
- @fatlindshehu
Hi @Isaque803
Centering the component using absolute positioning probably is not the best choice I would recommend: Centering a div/component using flexbox: -
display: flex
to set the div/component as a flex container. -justify-content: center
to center the div/component horizontally. -align-items: center
to center the div/component vertically. -Make sure the div/component has a height. -If you’re unfamiliar with flexbox, I would suggest checking THISAlso is recommended using rem or em units, instead of pixel units, px can cause Issues when trying to make your site/component responsive.
Either way nice work & keep it going...
Marked as helpful
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