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.
- Solution URL: My Solution URL
- Live Site URL: My Live Site URL
- HTML5
- CSS3
- Sublime Text 3
Centering a div within a div.
.main-container{
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
Using padding instead of a fixed height to make a div container responsive and prevent the text from overflow.
.qr-code-box{
width: 18em;
padding: 0.8em;
}
- Conquering Responsive Layouts 21 Day Challenge by Kevin Powell - Helped me to make my card container responsive and overcome the text overflow problem
- Thapa Technical - Helped me to center a div within a div
- Frontend Mentor - @iqra0001
- LinkedIn - Iqra Zaheer
- Instagram - Iqra Zaheer