Although translate does the trick in some desperate cases when you are forced to use absolute positioning, i would recommend 99% of the time to go with css flexbox instead. The centering is much more solid and is the de facto way to center elements anyhow you desire. Its super powerful and used in every modern web layout design. Check out more about it!
Although translate does the trick in some desperate cases when you are forced to use absolute positioning, i would recommend 99% of the time to go with css flexbox instead. The centering is much more solid and is the de facto way to center elements anyhow you desire. Its super powerful and used in every modern web layout design. Check out more about it!
Yup, was gonna say this. It's less verbose and more flexible 😁.