@Kamlesh0007
Posted
Congratulations on completing the challenge! That's a great achievement, and I'm sure you put a lot of effort into it. I really liked the way you approached the challenge and the code you wrote. You demonstrated a good understanding of the concepts and applied them effectively to solve the problem.I have a few suggestions to improve your code further. When it comes to centering a div or any element on a webpage, using margins may not always be the best approach. so use flexbox or grid layout for centering the div. make the container center properly use min-height:100vh which is used to ensure that a container or element takes up at least the full height of the viewport (the visible area of the browser window) regardless of the content inside it.
Here's an example code snippet:
body {
display:grid;
min-height:100vh;
place-items: center;
}
now remove below lines of code
.qrcode-card {
margin: 3em auto;
}
Marked as helpful
@ctrl-brokencode
Posted
@Kamlesh0007
Thank you for your suggestions! With this, I finally learned how to center a div or element! Thank you again for taking your time to help me. Hope I see you again some time!