Utilities for controlling the width of an element
Use border or border-<number> utilities like border-2 and border-4 to set the border width for all sides of an element:
Use utilities like border-r and border-t-4 to set the border width for one side of an element:
Use utilities like border-x and border-y-4 to set the border width on two sides of an element at the same time:
Use utilities like border-s and border-e-4 to set the border-inline-start-width and border-inline-end-width logical properties, which map to either the left or right border based on the text direction:
Use the border-bs-<number> and border-be-<number> utilities to set the border-block-start-width and border-block-end-width logical properties, which map to either the top or bottom border based on the writing mode:
<!-- [!code classes:border-bs-4] -->
<div class="border-bs-4 ..."></div>Use utilities like divide-x and divide-y-4 to add borders between child elements:
If your elements are in reverse order (using say flex-row-reverse or flex-col-reverse), use the divide-x-reverse or divide-y-reverse utilities to ensure the border is added to the correct side of each element: