margin 0 0 code example
Example 1: margin 0 auto
Specifying 0 tells the browser to set the top and bottom margin to 0.
Specifying auto tells the browser to automatically determine the left
and right margins equally.
It's the same as:
margin-top:0;
margin-bottom:0;
margin-left:auto;
margin-right:auto;
Example 2: how do I add a vertical margin in css
subject {
margin-top: /*the size of the margin */ (example: 100px)
/* or */
margin-bottom: /*the size of the margin */ (example: 100px)
}