Submitted about 1 year agoA solution to the QR code component challenge
responsive landing page using CSS
@olalois

Solution retrospective
centering the div
Code
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Bishalsnghd07
Hi @olalois
Congrats for completing this challenge🎉
-
Your Question regarding centering the div For that, you have to follow best practice instead of using absolute, you can simply apply this:
display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh;
Hope, this suggestion will help you to centering the div
Marked as helpful -
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