+ 1

What is the difference between margin and position in css

As by margin we can move any box and is true with position also so what is the main difference.

1st May 2018, 11:38 AM
+_-
+_- - avatar
4 Answers
+ 2
but by these properties we can move object right?
1st May 2018, 11:46 AM
+_-
+_- - avatar
+ 1
Margin is that space between the edge of an element's box and the edge of the complete box, such as the margin of a letter. The position property specifies the type of positioning method used for an element (static, relative, absolute or fixed).
1st May 2018, 11:44 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
thank you by the way check this thread https://www.sololearn.com/Discuss/1250063/?ref=app
1st May 2018, 11:56 AM
+_-
+_- - avatar