@VCarames
Posted
Hey @sdonohue0918, some suggestions to improve you code:
This will center you code, make it responsive and remove any unnecessary code:
body {
min-height: 100vh;
display: grid;
place-content: center ;
background-color: hsl(212, 45%, 89%);
}
.card {
background-color: hsl(0, 0%, 100%);
max-width: 320px;
border-radius: 15px;
text-align: center;
padding: 16px
}
.card__qrcode {
max-width: 100%;
border-radius: 12px;
}
.text {
font-family: 'Outfit', sans-serif;
}
.card__header {
font-weight: 700;
color: hsl(218, 44%, 22%);
font-size: 1.4rem;
}
.card__paragraph {
font-weight: 400;
color: hsl(220, 15%, 55%);
font-size: 1rem;
}
Happy Coding! 👻🎃
Marked as helpful
@sdonohue0918
Posted
@vcarames Thanks for the feedback! Interesting to see place-content with grid on the body and text-align on the card itself as a solution for centering. Will keep these in mind in the future!