In CSS, margins are used to create space around elements, outside of any defined borders. Margins can be set for the top, right, bottom, and left sides of an element, and they can be specified in various units such as pixels, ems, rems, percentages, and more.
div {
margin-top: 20px;
margin-right: 10%;
margin-bottom: 20px;
margin-left: 10%;
}