translateX and translateY on same element? March 23, 2023 by Tarik You can do something like this transform:translate(-50%,-50%);