Flex Direction

    Utilities for controlling the direction of flex items.

    Use to position flex items horizontally in the same direction as text:

    Row reversed

    Flex Direction - 图2

    1. <div class="flex flex-row-reverse ...">
    2. <div>01</div>
    3. <div>02</div>
    4. <div>03</div>

    Use to position flex items vertically:

    Column reversed

    Flex Direction - 图4

    1. <div class="flex flex-col-reverse ...">
    2. <div>01</div>
    3. <div>02</div>
    4. <div>03</div>
    5. </div>

    Tailwind lets you conditionally apply utility classes in different states using variant modifiers. For example, use to only apply the flex-row utility on hover.

    For a complete list of all available state modifiers, check out the Hover, Focus, & Other States documentation.

    Breakpoints and media queries

    1. <div class="flex flex-col md:flex-row">
    2. </div>

    To learn more, check out the documentation on Responsive Design, and other media query modifiers.