@justinconnell
Posted
Hi @viveknagesh21, Congratulations on submitting your QR Code solution! the design looks good.
I see you managed to centre the card nicely with FlexBox and having read your comment on how you got to that solution, I agree, FlexBox is great for achieving this goal.
I tried looking at the code repo but the link is broken so I used the browser to take a look at the code and have the following suggestion:
.container {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
/* margin: auto; -- you don't need this if you set the width*/
width: 100vw;
border-radius: 10px;
}
An alternative solution is to use:
.container {
height: 100vh;
width: 100vw;
border-radius: 10px;
display: grid;
place-content: center;
}
I hope you find this feedback helpful!
Keep up the great work! J
Marked as helpful
@viveknagesh21
Posted
@justinconnell Thanks for the feedback, J. Good point about the margin! I will definitely explore CSS Grids thoroughly.