margin - CSS: Cascading Style Sheets | MDN - top and bottom margin


margin-bottom or margin-top | CSS-Tricks top and bottom margin

With CSS, you have full control over the margins. There are properties for setting the margin for each side of an element (top, right, bottom, and left).

Margin Collapse. Top and bottom margins of elements are sometimes collapsed into a single margin that is equal to the largest of the two margins. This does not.

The margin of a box, outside the border, padding, and content areas. With one value [value] [value], [top and bottom] [left and right], 10px 20px. [value] [value] .