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 using CSS Flex

@Gokulnathan8

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

@amina-refik

Posted

Hi Gokulnathan,

Great work on your project!

I wanted to offer a suggestion regarding vertical centering of elements. There are several methods you can employ. For your case, one of the simplest ways is to use flexbox. By adding display: flex; to the parent element and adjusting the margins of the child element to auto:

body {
    display: flex;
}
.container {
    margin:  auto; /*removed 6rem*/
}

However, if you're interested in exploring other methods, : I recommend checking out this resource for more information.

Keep up the great work!

1

@Gokulnathan8

Posted

@amina-refik Hi,

Thank you so much for your suggestion and for taking the time to offer your suggestion!

I appreciate you sharing the code snippet and the resource for further exploration. I'll definitely give it a try and update it in the repo.

Thanks again for your support and encouragement!

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