Margin

/* CSS CODE */

@import url(http://css-sandbox.wdfiles.com/local--code/admin:themes);

.bigBox p{ margin: 0; }
.bigBox div{
border: 1px dashed #000;
padding: 5px;
}
.bigBox{
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; }

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.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License