@correlucas
Posted
👾Hello , congratulations for your new solution!
To make this alignment, first of all put min-height: 100vh
to the body
to make the body display 100% of the viewport height (this makes the container align to the height size thats now 100% of the screen height) size and display: flex
e flex-direction: column
to align the child element (the container) vertically using the body as reference.
See the code below :
body {
min-height: 100vh;
display: flex;
align-items:center;
Justify-content:center
}
🐸 Use this mini game to learn FLEXBOX
and all its properties by positioning the frog and become a FLEXBOX MASTER
here's the link:
https://flexboxfroggy.com/
✌️ I hope this helps you and happy coding!
Marked as helpful