<div class="col-md-12 px-<your number> px-sm-<your number> px-md-0">
This method allows you to set a custom padding for your div
under the MD
breakpoint, which will be removed once the MD breakpoint
is reached.
Keep in mind that "px" signifies that both left and right paddings will be the same. If you want varied padding, make use of the pl
and pr
classes instead.
It's important to note that the col
class in the Bootstrap configuration file already has a predefined gutter, resulting in default paddings on the sides for every col
. You have the option to override this by configuring the variables in the file.