Melvin Aguilar ๐ง๐ปโ๐ปโข 61,220
@MelvinAguilar
Posted
Hello there ๐. Good job on completing the challenge !
I have some suggestions about your code that might interest you.
- To center the element vertically, you need to set a height for the container where you apply flexbox. Without a height, there's no reference point for vertical alignment. I noticed you're using a padding to try to center. Later, you can use align-items: center to center the element.
.container {
display: flex;
justify-content: center;
/* flex-wrap: wrap; */
/* margin-top: 100px; */
min-height: 100vh;
align-items: center;
}
I hope you find it useful! ๐
Happy coding!
Marked as helpful
1
Tok1oโข 350
@ridhofaaauzi
Posted
@MelvinAguilar Thank you for your assistance and guidance.
0