margin
margin is a CSS property in the Box Model category. Sets the space outside an elements border. The syntax is margin: <length> | <percentage> | auto. Accepted values include <length>, <percentage>, auto. How the values behave: use length values (px, em, rem) for fixed spacing, % for relative spacing, or auto (margin only) to center elements. A typical example: margin: 0 auto; It is commonly applied to markup such as <div class="demo">Sample</div> Browser support: Chrome 1+, Firefox 1+, Safari 1+, Edge 12+. A close relative is width, which sets the width of an element. A close relative is height, which sets the height of an element. A close relative is min-width, which sets the minimum width of an element. More about this category: CSS box model properties — margin, padding, border, and content area. Related Box Model entries: width, height, min-width, max-width, min-height, max-height, margin-top, margin-right.