According to the instructions on Getbootstrap.com, adding CSS margin-bottom:4rem;
is recommended for images.
The naming convention for classes is as follows:
{property}{sides}-{size}
forxs
andfor{property}{sides}-{breakpoint}-{size}
sm
,md
,lg
, andxl
.
The issue arises when using the xs format, {property}{sides}-{size}
, such as mb-4
, since it applies the margin-bottom spacing to all screen sizes (sm
, md
, lg
, xl
) as well.
Is there any way to selectively apply the margin-bottom
spacing in Bootstrap only to xs
screens? It's like needing an "if statement" in Bootstrap to achieve this.