flex-direction

Class Description

flex-row

Sets flex-direction: row.

CSS Rules

.flex-row {
  flex-direction: row;
}

Usage

<element class="flex-row" />

Responsive

Prefix .flex-row utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:flex-row" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="flex-row:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="flex-row:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before flex-row::before" />

<element class="content-after flex-row::after" />
.flex-row Sets flex-direction: row.

flex-row-reverse

Sets flex-direction: row-reverse.

CSS Rules

.flex-row-reverse {
  flex-direction: row-reverse;
}

Usage

<element class="flex-row-reverse" />

Responsive

Prefix .flex-row-reverse utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:flex-row-reverse" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="flex-row-reverse:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="flex-row-reverse:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before flex-row-reverse::before" />

<element class="content-after flex-row-reverse::after" />
.flex-row-reverse Sets flex-direction: row-reverse.

flex-col

Sets flex-direction: column.

CSS Rules

.flex-col {
  flex-direction: column;
}

Usage

<element class="flex-col" />

Responsive

Prefix .flex-col utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:flex-col" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="flex-col:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="flex-col:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before flex-col::before" />

<element class="content-after flex-col::after" />
.flex-col Sets flex-direction: column.

flex-col-reverse

Sets flex-direction: column-reverse.

CSS Rules

.flex-col-reverse {
  flex-direction: column-reverse;
}

Usage

<element class="flex-col-reverse" />

Responsive

Prefix .flex-col-reverse utility with a breakpoint variant (e.g., md:) to apply styles at specific screen sizes (Supported breakpoints are xm through 2xl).

<element class="md:flex-col-reverse" />

States

States are generated dynamically at runtime and always come last. Append a state like :hover or :focus to the end of the class. This works in conjunction with breakpoints .

Supported pseudo-classes: :hover, :active, :focus, :focus-visible, :focus-within, :target, :checked, :disabled, and :group-hover.

<element class="flex-col-reverse:hover" />

Group Hover Example

The :group-hover state applies styles when a parent element with the .group class is hovered.

<element class="group">
  <element class="flex-col-reverse:group-hover">...</element>
</element>

Pseudo-Elements

The ::before and ::after utility classes are supported too. Granted that you add the mandatory content-before or content-after class in order for them to work.

<element class="content-before flex-col-reverse::before" />

<element class="content-after flex-col-reverse::after" />
.flex-col-reverse Sets flex-direction: column-reverse.