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

My QR Code Design. I used html and Css

Ritecโ€ข 30

@Richiemore

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 wanted to place the div at center of the page. Please how to do that? Thanks

Community feedback

@MelvinAguilar

Posted

Hi @Richiemore ๐Ÿ‘‹, good job completing this challenge, and welcome to the Frontend Mentor Community! ๐ŸŽ‰

  • There are two modern CSS techniques to center elements:

Using flexbox layout:

body {
   margin: 0;
   min-height: 100vh;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
}

Using grid layout:

body {
   margin: 0;
   min-height: 100vh;
   display: grid;
   place-content: center;
}

Links with more information:

Good job, and happy coding! ๐Ÿ˜

0

Ritecโ€ข 30

@Richiemore

Posted

@MelvinAguilar Thank you so much for your guide. i will look into those materials. am really glad.

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