Skip to content
Advertisement

How do I use the Spacing Utility Classes in Bootstrap

In this article I saw Bootstrap 4 Spacing Utility Classes, and he uses m-b-lg in className.

JavaScript

But when I use it on meteorjs with react nothing happens. Am I missing something or missing a plugin?

JavaScript

Advertisement

Answer

Refer to the Spacing (Bootstrap v4 alpha) documentation.

The classes are named using the format: {property}-{sides}-{size}

Where size is one of: * 0 – for classes that eliminate the margin or padding by setting it to 0 * 1 – (by default) for classes that set the margin or padding to $spacer-xor $spacer-y * 2 – (by default) for classes that set the margin or padding to $spacer-x * 1.5 or $spacer-y * 1.5 * 3 – (by default) for classes that set the margin or padding to $spacer-x * 3 or $spacer-y * 3.

So use m-t-3 instead of m-t-lg.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement