A new version of Bootstrap Email is here! - Check out the Bootstrap Email v1!

There are two types of spacing Bootstrap Email supports. Padding (applied to the inside of table cells) and Margin (in the form of vertical spacers). Just like Bootstrap there are the .p{side}-{size}and similarly for margin helpers.

List of supported classes:

.w-25     /* width  25% */
.w-50     /* width  50% */
.w-75     /* width  75% */
.w-100    /* width  100% */
.w-auto   /* width  auto % */

.p-{0-5}  /* padding on all sides */
.pt-{0-5} /* padding top */
.pr-{0-5} /* padding right */
.pb-{0-5} /* padding bottom */
.pl-{0-5} /* padding left */
.px-{0-5} /* padding left and right */
.py-{0-5} /* padding top and bottom */

.mt-{0-5} /* margin top */
.mb-{0-5} /* margin bottom */
.my-{0-5} /* margin top and bottom */

.s-{0-5} /* spacer with size */

Note: Margin is only supported on the top and bottom.

Responsive

By default these classes target all devices. However you you just wanted to target desktop you could do .w-lg-25. For all of these classes you can apply a lg- to the middle to make it just apply to desktop devices. Or say you want a 100% button on mobile and a 50% width centered button on desktop. That would look like this:

<a class="w-100 w-lg-25 mx-auto btn btn-primary btn-lg" href="https://bootstrapemail.com">Tada</a>

That is the power of Bootstrap email right there!

Neato! All of the above classes are responsive so putting `mt-1 mt-lg-3` on a element with have a spacing of 1 on mobile and a spacing of 3 on desktop.

Padding

<a class="btn btn-primary p-3" href="http://bootstrapemail.com">A Button with lots of padding</a>

A Button with lots of padding

Margin

The margin classes just create spacers above and/or below and element for simpler syntax like Bootstrap.

<div class="card card-body">Top Card</div>
<div class="card card-body my-3">Middle Card (with margin above and below)</div>
<div class="card card-body">Bottom Card</div>
Top Card
Middle Card (with margin about and below)
Bottom Card

Spacer

<div class="s-3"></div>

Spacers hold not content, they are just put into the document to sit between elements in a vertical flow.