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

Responsive QR Code Component usiing Flexbox

@Forester04

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

Ecem Gokdogan 9,380

@ecemgo

Posted

Some recommendations regarding your code that could be of interest to you.

  • In order to center the card, you can add flexbox and min-height: 100vh to the body
body {
  background-color: hsl(212, 45%, 89%); 
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
  • After adding them, you don't need the .content, so you can remove it
/* 
.content {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    max-width: 90%;
    margin: 100px auto;
    background-color: hsl(212, 45%, 89%);
    padding: 1.3rem 0 1.3rem 0;
    border-radius: 5px;
} 
*/

Hope I am 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