Bootstrap 4 provides comprehensive utility classes for managing margins and paddings across different screen sizes, known as the mb (margin bottom) classes. These classes offer flexibility in setting element spacing for varying viewports, as described below:
Understanding class="mb-0"
The class="mb-0" specifically targets the bottom margin of an element and sets it to 0. This class falls under the margin utility class category and is used to remove the bottom margin completely.
Bootstrap Margin and Padding Utility Class Format
Bootstrap utilizes a consistent naming convention for its margin and padding utility classes:
{property}{sides}-{size} or {property}{sides}-{breakpoint}-{size}
Property:
Sides:
Breakpoints:
Size:
Example Usage
Lorem ipsum
This code applies the class="mb-0" to the paragraph element, removing its bottom margin.
Additional Resources
For more comprehensive information, refer to the following resources:
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3