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

stepheigbeβ€’ 30

@stepheigbe

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


I am unsure of how to centralise the whole thing. Also how to make the copyright and the rest be at the bottom of the page.

Community feedback

Lucas πŸ‘Ύβ€’ 104,560

@correlucas

Posted

πŸ‘ΎHello @stepheigbe, congratulations for your new solution!

You've done a good work here and we'll fix your solution together:

Remove these properties, the card size is max-width: 320px note that 1440px is only a reference to say in with dimension the desing were created.

main {
    max-width: 320px
    /* width: 1440px; */
    /* height: 800px; */
}

My advice here is to use flexbox to create this alignment. First of all add to the body min-height: 100vh to make the body display 100% of the browser screen size and display: flex e flex-direction: column to align the child element (the container) vertically the body is the parent in this situation.

Here's the code to align you solution:

body {
    display: flex;
    margin: 0;
    min-height: 100vh;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    margin: 15px;
    font-size: 15px;
    background-color: rgb(150, 183, 226);
    align-items: center;
    justify-content: center;
}

πŸ‘‹ I hope this helps you and happy coding!

0

stepheigbeβ€’ 30

@stepheigbe

Posted

@correlucas This really helped thank you

1
Lucas πŸ‘Ύβ€’ 104,560

@correlucas

Posted

@stepheigbe I'm happy to hear that was useful, keep it up πŸ‘

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