@motuncoded
Posted
Well done on your attempt on the blog preview card challedge... You can do this by centering your card
body{
display:flex;
justify-conent: center;
align-items:center;
min-height:100vh
}
I hope you found this useful
Hi Motunrayo, thank you for your comment. In the QR code component challenge, I used a similar approach as you suggested to center the work with the difference that I was using the min-height property to specify the exact height adequate to show the entire page, and then as the second property, I specified height as 100vh. Now I see that in this case, it's sufficient to just set the min-height property to 100vh and achieve the same result with less code. Thank you!