Do you still use the old snippet to the center element with position: absolute using transform(-50%, -50%)? It’s time to use a new alternative! Meet place-items: center 😉 ❤ Thank you so much, my sponsors: Tatiana Ten
My favorite way for centering an element is
parent {
display: flex;
align-items: center;
justify-content: center;
}
My favorite way for centering an element is
parent {
display: flex;
align-items: center;
justify-content: center;
}