Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

QR code component

Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

Fatlind Shehu 2,230

@fatlindshehu

Posted

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 THIS

Also 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

0

Please log in to post a comment

Log in with GitHub
Discord logo

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