@AkoToSiJeromeEh
Posted
Hey ! Great Work out there i just notice that the four card component is does not vertically align on the middle ( you can notice it by zooming out the web page ) you are correct through the usage of flex with the properties of justify in order to center the component but the reason why its not vertically align is because there are no height it is very important whether you want to center something. by adding this on the body you can achieve to vertically align the component . that's all happy coding !!
body {
display: flex; // add this
flex-direction: column;
justify-content: center; // add this
margin: 0 auto; //remove this since you are using flex properties
background-color: var(--Very_Light_Gray);
align-items: center; // add this
min-height: 100vh;// add this
}
Marked as helpful