---
layout: single
property_name: margin-top
---
Defines the space outside the element, on the top side.
Removes any margin at the top.
You can use pixel values.
You can use (r)em values. The value is relative to the font size:
You can use percentage values.
#margin-top
default
margin-top: 0;
margin-top: 30px;
margin-top: 2em;
<html> the root element's font sizemargin-top: 10%;
The percentage is based on the width of the container.