p-* and m-* control inner and outer space. Tailwind adds axis and corner shortcuts:
px-4— horizontal paddingpy-2— vertical paddingmt-6,mb-4— single-side marginmx-auto— center block elements with a width-mt-2— negative margin for optical overlap
Margin collapse between block siblings still applies—utilities do not change CSS physics. See CSS box model if margins behave unexpectedly.
Self-check
- Which utility centers a block with a set width?
- When might negative margin be appropriate?