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

Mobile First QR-code Component

@CodeNinja585

Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


aligning the items was difficult for me, I also wanted to try and make the website responsive. Adding more fuel to the fire.

Community feedback

@LuisJimenez19

Posted

Hello, I congratulate you for having finished the challenge

For better control when you have few elements, it is better to manipulate the container and not the content, You can add flex-direction:column; to the body to have the card above the attribution section and a justify-content:center; to the center so you don't use margin on the card. something like that:

   body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--lightGrey-clr);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    gap: 30px;
}
    
    .card {
    background-color: var(--white-clr);
    padding: 15px;
    text-align: center;
    border-radius: 17px;
    /* text-align: center; */
    /* margin: 0 1rem; */
    max-width: 300px;
}

.container {
    /* max-height: 100vh; */
    /* margin: 0 auto; */
    /* display: flex; */
    flex-direction: column;
    justify-content: center;
}

If you want, you can remove the container, so it could look a little better, I'll leave you with the task of adding a shadow so it would look prettier, I hope my contribution is helpful, gambaree.

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