QR-Code-Solution with HTML and CSS

Solution retrospective
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.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @DorKatzir
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 - @zidannn24
Looks great!
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