css.properties

margin-bottom

The margin-bottom property sets the bottom margin of an element.

Formal Syntax

margin-bottom = <length-percentage> | auto | <anchor-size()> <length-percentage> = [ <length> | <percentage> ]

See specification

JavaScript Access

// Access via element.style element.style.marginBottom = 0;

Logical Property Group

This property belongs to the margin logical property group, which includes:

Browser Support

standard | MDN ยท Spec

FeatureChromeFirefoxSafariEdge
margin-bottom11112
anchor-size13214726132
auto11112

Related Properties