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-Solution with HTML and CSS

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


What are you most proud of, and what would you do differently next time?

I was able to style the QR-code component with no problem

What challenges did you encounter, and how did you overcome them?

I had a hard time trying to center the wrapper and had some problems with getting the design pixel-perfect

What specific areas of your project would you like help with?

I would love to know how to improve my code in general and am open to any advice to write better CSS code.

Community feedback

@DorKatzir

Posted

nice work.

center any div horizontal and vertical to the the screen size:

remove this from the body (no need for that)

min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;

the wrapper div must have a width and a height same as the screen. after having width and height flex will center verticlal and horizontal:

 .wrapper {
     width:100%; 
     height:100dvh;
     display:flex; 
     align-items:center; 
     justify-content:center;
 }

Marked as helpful

1

@QS3H

Posted

@DorKatzir sure will do just that, thanks for the feedback

0
zdnnnnn 40

@zidannn24

Posted

Looks great!

1

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