Why my transform: translate(-250px); property is not working 😔😔?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why my transform: translate(-250px); property is not working 😔😔??

I'm trying to solve it many times but I lost 😞... https://code.sololearn.com/WqIgsjXN3ImK/?ref=app

30th Jul 2022, 3:22 AM
Pooja Sahoo
Pooja Sahoo - avatar
3 Answers
+ 1
Thanks all for trying to help me ... actually 😅 I worte the property like; transform: translateX (-250px) instead of writing transform: translateX(-250px)... That was my mistake 😅
30th Jul 2022, 9:01 AM
Pooja Sahoo
Pooja Sahoo - avatar
+ 2
You have written translateX (-250px); fix to translate(-250px);
30th Jul 2022, 5:38 AM
Solo
Solo - avatar
+ 1
Try this - with positive values- transform:translate(250px, 100px); "Positive values will push an element down and to the right of its default position, while negative values will pull an element up and to the left of its default position".
30th Jul 2022, 4:39 AM
Parag
Parag - avatar