Pay me QR code using basic html & CSS

Solution retrospective
At first I find it difficult to center the div and fit content inside it as I'm relatively new to this I just finished a html CSS course and Frontend mentor turned out to be a great place to practice my skill.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Kamlesh0007
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
Here's an example code snippet:
body { display: grid; place-items: center; min-height: 100vh; } now remove below lines of code .container { margin: auto; margin-top:50px; }
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