Overview
The margin-bottom CSS property sets the margin area on the bottom of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
See full list on developer.mozilla.org
Try it
This property has no effect on non-replaced inline elements, such as or .
See full list on developer.mozilla.org
Syntax
Values
t The size of the margin as a fixed value. t The size of the margin as a percentage, relative to the inline size (width in a horizontal language, defined by writing-mode) of the containing block. autot The browser selects a suitable value to use. See margin.
See full list on developer.mozilla.org
Examples
Setting positive and negative bottom margins
See full list on developer.mozilla.org
Browser compatibility
BCD tables only load in the browser with JavaScript enabled. Enable JavaScript to view data.
See full list on developer.mozilla.org
See also
•margin-top, margin-right, and margin-left and the margin shorthand
•The mapped logical properties: margin-block-start, margin-block-end, margin-inline-start, and margin-inline-end and the shorthands margin-block and margin-inline
See full list on developer.mozilla.org