mb-* — space below an element. This family contains 71 generated classes in Nakshora 3.0.

Classes#

ClassGenerated CSS
mb-0margin-bottom: 0px;
-mb-0margin-bottom: -0px;
mb-1margin-bottom: 0.25rem;
-mb-1margin-bottom: -0.25rem;
mb-2margin-bottom: 0.5rem;
-mb-2margin-bottom: -0.5rem;
mb-3margin-bottom: 0.75rem;
-mb-3margin-bottom: -0.75rem;
mb-4margin-bottom: 1rem;
-mb-4margin-bottom: -1rem;
mb-5margin-bottom: 1.25rem;
-mb-5margin-bottom: -1.25rem;
mb-6margin-bottom: 1.5rem;
-mb-6margin-bottom: -1.5rem;
mb-7margin-bottom: 1.75rem;
-mb-7margin-bottom: -1.75rem;
mb-8margin-bottom: 2rem;
-mb-8margin-bottom: -2rem;
mb-9margin-bottom: 2.25rem;
-mb-9margin-bottom: -2.25rem;
mb-10margin-bottom: 2.5rem;
-mb-10margin-bottom: -2.5rem;
mb-11margin-bottom: 2.75rem;
-mb-11margin-bottom: -2.75rem;
mb-12margin-bottom: 3rem;
-mb-12margin-bottom: -3rem;
mb-14margin-bottom: 3.5rem;
-mb-14margin-bottom: -3.5rem;
mb-16margin-bottom: 4rem;
-mb-16margin-bottom: -4rem;
mb-20margin-bottom: 5rem;
-mb-20margin-bottom: -5rem;
mb-24margin-bottom: 6rem;
-mb-24margin-bottom: -6rem;
mb-28margin-bottom: 7rem;
-mb-28margin-bottom: -7rem;
mb-32margin-bottom: 8rem;
-mb-32margin-bottom: -8rem;
mb-36margin-bottom: 9rem;
-mb-36margin-bottom: -9rem;
mb-40margin-bottom: 10rem;
-mb-40margin-bottom: -10rem;
mb-44margin-bottom: 11rem;
-mb-44margin-bottom: -11rem;
mb-48margin-bottom: 12rem;
-mb-48margin-bottom: -12rem;
mb-52margin-bottom: 13rem;
-mb-52margin-bottom: -13rem;
mb-56margin-bottom: 14rem;
-mb-56margin-bottom: -14rem;
mb-60margin-bottom: 15rem;
-mb-60margin-bottom: -15rem;
mb-64margin-bottom: 16rem;
-mb-64margin-bottom: -16rem;
mb-72margin-bottom: 18rem;
-mb-72margin-bottom: -18rem;
mb-80margin-bottom: 20rem;
-mb-80margin-bottom: -20rem;
mb-96margin-bottom: 24rem;
-mb-96margin-bottom: -24rem;

…and 11 more in this family — search by class name to find the exact one.

Example#

example
html
<h2 class="mb-4 text-2xl font-bold">Heading rhythm</h2>

Responsive & variants#

Every class here accepts screen prefixes (sm:xl:) and state variants — md:hover:p-4 style stacks compile to a single media query. See responsive/index|Responsive design and variants/index|Variants.

Best practices#

  • Headings: mb-2…mb-4 depending on size

utilities/spacing/spacing-scale|Spacing scale · utilities/sizing/width|Width · comparisons/margin-vs-padding|Margin vs padding