Utilities for controlling an element
Use p-<number> utilities like p-4 and p-8 to control the padding on all sides of an element:
Use pt-<number>, pr-<number>, pb-<number>, and pl-<number> utilities like pt-6 and pr-4 to control the padding on one side of an element:
Use px-<number> utilities like px-4 and px-8 to control the horizontal padding of an element:
Use py-<number> utilities like py-4 and py-8 to control the vertical padding of an element:
Use ps-<number> or pe-<number> utilities like ps-4 and pe-8 to set the padding-inline-start and padding-inline-end logical properties, which map to either the left or right side based on the text direction:
For more control, you can also use the LTR and RTL modifiers to conditionally apply specific styles depending on the current text direction.
Use the pbs-<number> and pbe-<number> utilities to set the padding-block-start and padding-block-end logical properties, which map to either the top or bottom side based on the writing mode:
<!-- [!code classes:pbs-8] -->
<div class="pbs-8 ...">pbs-8</div>