Justify Content

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


Class
Properties
justify-content-start
justify-content-end
justify-content-center
justify-content-between
justify-content-around
justify-content-evenly

Start

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
2
3
<div class="d-flex justify-content-start">
  <div>1</div>
  <div>2</div>
  <div>3</div>
</div>

End

1
2
3
<div class="d-flex justify-content-end">
  <div>1</div>
  <div>2</div>
  <div>3</div>
</div>

Center

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

Between

1
2
3
<div class="d-flex justify-content-between">
  <div>1</div>
  <div>2</div>
  <div>3</div>
</div>

Around

1
2
3
<div class="d-flex justify-content-around">
  <div>1</div>
  <div>2</div>
  <div>3</div>
</div>

Evenly

1
2
3
<div class="d-flex justify-content-evenly">
  <div>1</div>
  <div>2</div>
  <div>3</div>
</div>

Responsive

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

<div class="justify-content-md-center ..."></div>