+ 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