@danielmrz-dev
Posted
Hello @cwatso
The technique you used to center your card is one of the most accepted.
Another way to have the same result is apply this to the element you wanna center:
.element {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
I hope it helps!
Marked as helpful