Skip to content
Justice Tech School

Flex Utilities

Bootstrap wraps flexbox in classes: flex-row, flex-column, justify-content-*, align-items-*, flex-wrap, gap-* and flex-grow-1.

Example
<div class="d-flex flex-column flex-md-row gap-3 align-items-center">
  <div class="flex-grow-1">Grows</div>
  <div>Fixed</div>
</div>

Exercise

Space between items.

gap-

Quiz Test

What does flex-grow-1 do?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.