This is a solution to the QR code component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Below is a screenshot of the complete challenge solution.
- Semantic HTML5 markup
- CSS
- Flexbox
- Mobile-first workflow
- When centering a Card in an empty page, you need to setup height of the parent container, i.e 100vh. Example of the above trick is highlighted in container class
.container {
max-width: 1440px;
width: 90%;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}