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

7th Oct 2021, 1:45 PM
D Doyen
D Doyen - avatar
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.
7th Oct 2021, 2:17 PM
Kashyap Kumar
Kashyap Kumar - avatar