I understand "margin: 0 auto" + "display: block" can centering elements such as div or img but i can't understand the logic behind it. All we saying is: 1. The element have zero space between it borders to the "outside". 2. you "catch" all the line.
I really can't understand why it centering elements.
Thank you !!!