0

What does it mean "margin: 0 auto"?

For example => body {margin: 0 auto;}

24th Nov 2018, 1:49 PM
Davide
Davide - avatar
2 Réponses
+ 1
margin:0 auto; 0 is for top-bottom and auto for left-right. It meansthat left and right margin will takeauto margin according to the width of the element and the width of the container
24th Nov 2018, 2:08 PM
Abinaya sekar
+ 1
Thank you Abinaya sekar
24th Nov 2018, 2:59 PM
Davide
Davide - avatar