+ 4

Can anybody explain how transform:translate(-50%,-50%); works....??

23rd May 2019, 6:08 PM
Munsif Ali Misri 🇵🇰
Munsif Ali Misri 🇵🇰 - avatar
4 Respostas
0
The css selector of left and top are referring to top right corner of the element. transform: translate(-50%,-50%) moves this refer point to the center of the element.
24th May 2019, 12:24 AM
Calviղ
Calviղ - avatar
+ 2
transform: translate(50px,100px);
24th Sep 2022, 6:38 PM
Hayk Gevorgyan
0
Calviղ thquee but what is the use of -50%..?how it works
24th May 2019, 12:33 AM
Munsif Ali Misri 🇵🇰
Munsif Ali Misri 🇵🇰 - avatar
- 4
23rd Nov 2021, 1:44 AM
فوزيه عصام محمد عقلان