This has small margins.

This has large margins.

This has uneven margins.

Margin is defined by percentage.

This has an auto margin and a fixed width.

This has negative margins.

/* CSS CODE */
@import url(;
.bigBox p{    margin: 0; }
.bigBox div{
    border: 1px dashed #000;
    padding: 5px;
    border: 3px solid #F00;
    padding: 0;
.small{    margin: 4px; }
.large{    margin: 20px; }
.uneven{    margin: 0 6px 15px 9px; }
.percentage{    margin: 5% 10%; }
.automatic{    margin: auto; }
.negative{    margin: 1em 0 0 -20px; }
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License