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 Display flex

@Majoralter

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

Hassia Issah 50,650

@Hassiai

Posted

In the html replace <div class="container"> with the main tag , there is no need to give the image a div with a class in order to style and put all your text-content in one div:

<main><img><div class=" text"></div></main> To center a content on a page declare the following in the body{ display: flex; align-items: center; justify-content: center; min-height: 100vh} Give the main a background-color and a padding value. For the colors use the color available in the styleguide.md found in the starter folder Give the image a max-width of 100%. Give .text a padding top and bottom value. Hope am helpful Happy Coding.
1

@Majoralter

Posted

@Hassiai Thanks for the feedback. I usually don't code like that I did the challenge late in the night so I didn't take too much notice of these things I'll refactor the code when I get the chance. Also I used all the colors in the style guide.

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