0
What is the best method to move object in css. Is it margin or left,right,bottom and top
Which of this is the best or are there any other options
1 ответ
+ 3
You can use transform: translate(20px);
Margin is not for moving object but can be used.
And the others that you mentioned are for positioning. For example you can center an object. You can use flexbox and grid layout for positioning.
Do research on all, you'll get it after some days.