QR Code Component using basic HTML and CSS

Solution retrospective
Q1 I know that media queries are used to make a page responsive to variations in viewport size but how do I implement this, say for this case I wanted the qr code to occupy the full height of the viewport whether it be using a desktop or mobile screen. How do I "resize" the html elements accordingly?
Q2 What are the problems associated with the code and any best practices that could be recommended to facilitate a more efficient code and way of coding?
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Zubair Abid's solution.
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