Display

Defines how an element is displayed on a page.

d-hiddenA hidden element is not visible and does not allocate space.
d-blockA block element starts on a new line.
d-block-inlineInline block is similar to an inline element but properties like width, height and top bottom paddings/margins are respected.
d-inlineAn inline element does not start on a new line and allocates width as necessary.
d-flexDisplays the element as a block level flex container.
d-flex-inlineDisplays the element as an inline level flex container.
 

Flex Position

Specifies how an element is positioned on the screen.

d-flex-row
1
2
3
d-flex-col
1
2
3
d-flex-x-end
1
2
3
d-flex-x-space-between
1
2
3
d-flex-x-space-around
1
2
3
d-flex-x-space-evenly
1
2
3
  d-flex-row
  <div class="d-flex d-flex-row">
    <div class="xx">1</div>
    <div class="xx">2</div>
    <div class="xx">3</div>
  </div>

  d-flex-col
  <div class="d-flex d-flex-col">
    <div class="xx">1</div>
    <div class="xx">2</div>
    <div class="xx">3</div>
  </div>

  d-flex-x-end
  <div class="d-flex d-flex-x-end">
    <div class="xx">1</div>
    <div class="xx">2</div>
    <div class="xx">3</div>
  </div>

  d-flex-x-space-between
  <div class="d-flex d-flex-x-space-between">
    <div class="xx">1</div>
    <div class="xx">2</div>
    <div class="xx">3</div>
  </div>

  d-flex-x-space-around
  <div class="d-flex d-flex-x-space-around">
    <div class="xx">1</div>
    <div class="xx">2</div>
    <div class="xx">3</div>
  </div>

  d-flex-x-space-evenly
  <div class="d-flex d-flex-x-space-evenly">
    <div class="xx">1</div>
    <div class="xx">2</div>
    <div class="xx">3</div>
  </div>
d-flex-rowThe main axis is the same as the text orientation, defaulting to left to right. If dir is set to rtl, then the axis direction is from right to left.
d-flex-colThe main axis is located vertically and directed from top to bottom.
d-flex-wrapFlexes are arranged in several lines, their direction is specified by the flex-direction property.
d-flex-nowrapFlexes line up in one line.
d-flex-x-startFlexes are pressed to the beginning of the line.
d-flex-x-endFlexes are pressed to the end of the line.
d-flex-x-centerFlex lines are aligned to the center of the line.
d-flex-x-space-betweenFlexes are evenly distributed throughout the line. The first and last element are pressed against the corresponding edges of the container.
d-flex-x-space-aroundFlexes are evenly distributed throughout the line. The empty space before the first and after the last element is equal to half the space between two adjacent elements.
d-flex-x-space-evenlyFlexes are distributed so that the distance between any two adjacent elements, as well as before the first and after the last, is the same.
d-flex-y-startFlexes are aligned at the beginning of the transverse axis of the container.
d-flex-y-endThe flexes are aligned at the end of the transverse axis of the container.
d-flex-y-centerFlexes are aligned along the transverse axis.
d-flex-y-baselineFlexes are aligned to their baseline.
d-flex-y-stretchFlexes are stretched in such a way as to occupy all the available space of the container.
d-flex-self-startThe element is aligned at the origin of the container's transverse axis.
d-flex-self-endThe element is aligned at the end of the container's transverse axis.
d-flex-self-centerThe element is aligned to the centerline on the cross axis.
d-flex-self-baselineThe element is aligned to the text baseline.
d-flex-self-stretchThe element is stretched in such a way as to occupy all the free space of the container along the transverse axis.
d-flex-content-startThe lines are located at the beginning of the transverse axis. Each next line is flush with the previous one.
d-flex-content-endThe lines are located starting from the end of the transverse axis. Each previous line is flush with the next.
d-flex-content-centerThe lines are located in the center of the container.
d-flex-content-stretchThe lines stretch evenly to fill the available space.
d-flex-content-space-betweenThe lines are evenly distributed in the container and the distance between them is the same.
d-flex-content-space-aroundThe lines are evenly spaced so that the space between two adjacent lines is the same. The empty space before the first line and after the last line is equal to half the space between two adjacent lines.
d-flex-content-space-evenlyThe lines are distributed evenly. The white space before the first line and after the last line is the same width as the other lines.