Utilities for controlling the direction of flex items.
2025-03-06
Written by: tdtc
| Class | Styles |
|---|---|
| flex-row | flex-direction: row; |
| flex-row-reverse | flex-direction: row-reverse; |
| flex-col | flex-direction: column; |
| flex-col-reverse | flex-direction: column-reverse; |
Use flex-row to position flex items horizontally in the same direction as text:
<div class="flex flex-row ...">
<div>01</div>
<div>02</div>
<div>03</div>
</div>
Use flex-row-reverse to position flex items horizontally in the opposite direction:
<div class="flex flex-row-reverse ...">
<div>01</div>
<div>02</div>
<div>03</div>
</div>
Use flex-col to position flex items vertically:
<div class="flex flex-col ...">
<div>01</div>
<div>02</div>
<div>03</div>
</div>
Use flex-col-reverse to position flex items vertically in the opposite direction:
<div class="flex flex-col-reverse ...">
<div>01</div>
<div>02</div>
<div>03</div>
</div>