Dialtone

Align Self

Utilities for setting how an element's is aligned along a parent's cross axis.

Classes

ClassOutput
.d-as-flex-startalign-self: flex-start
.d-as-flex-endalign-self: flex-end
.d-as-centeralign-self: center
.d-as-baselinealign-self: baseline
.d-as-stretchalign-self: stretch
.d-as-normalalign-self: normal
.d-as-autoalign-self: auto
.d-as-unsetalign-self: unset

Stretch

Use d-as-stretch to stretch an item along a parent's cross axis.

<div class="d-d-flex d-ai-flex-start">
  <div>1</div>
  <div class="d-as-stretch">2</div>
  <div>3</div>
</div>

Flex Start

Use d-as-flex-start to align an item to the start of the parent's cross axis.

<div class="d-d-flex">
    <div>1</div>
    <div class="d-as-flex-start">2</div>
    <div>3</div>
</div>

Center

Use d-as-center to align an item along the center of the parent's cross axis.

<div class="d-d-flex">
  <div>1</div>
  <div class="d-as-center">2</div>
  <div>3</div>
</div>

Flex End

Use d-as-flex-end to align an item from the end of the parent's cross axis.

<div class="d-d-flex">
  <div>1</div>
  <div class="d-as-flex-end">2</div>
  <div>3</div>
</div>
Last Updated: