@danielmrz-dev
Posted
Hello, @OsatohanmwenT!
Your project looks great!
I noticed that you used position: absolute;
to place your card in the middle of the page. Here are two ways to do it, in case you wanna try other options in the future (one of them is position absolute
but a bit different than yours:
- You can apply this to the body:
body {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
2 - or you can apply this to the element you wanna center (almost like you did):
.element {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
I hope it helps!
Other than that, great job!
Marked as helpful
@OsatohanmwenT
Posted
@danielmrz-dev Thanks for the tip