Flex Grow

Quickly manage the layout, alignment, and sizing of grid columns, navigation, components, and more with a full suite of responsive flexbox utilities.


Class
Properties
flex-grow-0
flex-grow-1

Grow

Use the .flex-grow-1 class on any flex element to fill all the available space, while allowing the remaining two flex items their necessary space.

1
Flex item
3
<div class="d-flex bd-highlight">
  <div>Flex item</div>
  <div class="flex-grow-1">Flex grow item</div>
  <div>Flex item</div>
</div>

Prevent from growing

Use .flex-grow-0 utilities to toggle a flex item’s ability to grow to fill available space. In the example below, the .flex-grow-1 elements uses all available space it can, while allowing the remaining two flex items their necessary space.

1
🀩
3
<div class="d-flex bd-highlight">
  <div class="flex-grow-1">Flex item</div>
  <div class="flex-grow-0">I will stay fixed</div>
  <div class="flex-grow-1">Flex item</div>
</div>

Responsive

Responsive variations also exist for each flex-grow value. Use the .flex-grow-{breakpoint}-{value} for sm, md, lg, xl, and xxl to any existing flex-grow utility.

<div class="flex-grow-md-1 ..."></div>