Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

CSS Examples: border-spacing

Examples

These cells have 5px of spacing all around them

These cells have 5px of horizontal spacing and 10px vertical

Styles Used

.horizontal {
	border-collapse: separate;
	border-spacing: 5px;
	border: 1px solid #000;
}

.both {
	border-collapse: separate;
	border-spacing: 5px 10px;
	border: 1px solid #000;
}