Place 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
place-content-start
place-content-end
place-content-center
place-content-between
place-content-around
place-content-evenly
place-content-stretch

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
4
5
6
7
8
<div class="d-flex place-content-start flex-wrap h-48">
  <div>1</div>
  <div>2</div>
  <div>3</div>
</div>

End

1
2
3
4
5
6
7
8
<div class="d-flex place-content-end flex-wrap h-48">
  <div>1</div>
  <div>2</div>
  <div>3</div>
</div>

Center

1
2
3
4
5
6
7
8
<div class="d-flex place-content-center flex-wrap h-48">
  <div>1</div>
  <div>2</div>
  <div>3</div>
</div>

Between

1
2
3
4
5
6
7
8
<div class="d-flex place-content-between flex-wrap h-48">
  <div>1</div>
  <div>2</div>
  <div>3</div>
</div>

Around

1
2
3
4
5
6
7
8
<div class="d-flex place-content-around flex-wrap h-48">
  <div>1</div>
  <div>2</div>
  <div>3</div>
</div>

Evenly

1
2
3
4
5
6
7
8
<div class="d-flex place-content-evenly flex-wrap h-48">
  <div>1</div>
  <div>2</div>
  <div>3</div>
</div>

Stretch

1
2
3
4
5
6
7
8
<div class="d-flex place-content-stretch flex-wrap h-48">
  <div>1</div>
  <div>2</div>
  <div>3</div>
</div>

Responsive

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

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