padding-bottom

Sets the inner spacing at the bottom of an element. Use the prefix pb followed by a value with unit. Useful for section bottom margins, card inner spacing, and container trailing space.

Class Patterns

Prefix pb + value + unit. Use px for values under 20px, rem (1rem = 10px) for 20px and above.

ClassCSS OutputDescription
pb4pxpadding-bottom: 4pxminimum spacing
pb8pxpadding-bottom: 8pxnarrow spacing
pb12pxpadding-bottom: 12pxdefault spacing
pb16pxpadding-bottom: 16pxgenerous spacing
pb2rempadding-bottom: 2rem (20px)rem unit starting point
pb2-4rempadding-bottom: 2.4rem (24px)decimals expressed with hyphens
pb3-2rempadding-bottom: 3.2rem (32px)wide spacing
pb4rempadding-bottom: 4rem (40px)section bottom spacing
pbapadding-bottom: autoauto padding (some layout contexts)

Unit Comparison

Comparison of the same size expressed in px and rem. Based on: html { font-size: 10px }

Sizepx Classrem Class
8pxpb8pxpb0-8rem
12pxpb12pxpb1-2rem
16pxpb16pxpb1-6rem
20pxpb20pxpb2rem
24pxpb24pxpb2-4rem
32pxpb32pxpb3-2rem
40pxpb40pxpb4rem

Common Values

ClassActual SizeUsage
pb4px4pxBadge/tag fine bottom margin
pb8px8pxButton inner bottom gap
pb16px16pxCard inner bottom gap
pb2rem20pxSection bottom padding
pb4rem40pxScroll area bottom margin

Code Examples

<!-- Top/bottom section padding -->
<section class="pt4rem pb4rem px2rem">
  <h2 class="mb16px">Section Title</h2>
  <p>Top 40px, bottom 40px inner gap</p>
</section>

<!-- Scroll area bottom margin -->
<div class="h40rem oya pb4rem">
  <p>Scrollable content...</p>
  <p>Apply pb4rem so the last item is not clipped</p>
</div>

<!-- Asymmetric card padding -->
<div class="pt2rem pr16px pb2-4rem pl16px bg18181B br8px">
  Slightly wider gap at the bottom (visual balance)
</div>

<!-- Apply top/bottom simultaneously with py -->
<section class="py4rem px2rem">
  py4rem = pt4rem + pb4rem
</section>

Tips & Notes

Apply top and bottom simultaneously with py

If top and bottom padding are the same, use py2rem to apply pt2rem pb2rem at once.

Bottom margin for scroll areas

Apply pb2rem or pb4rem to scrollable areas to prevent the last content from being clipped.