Create responsive layouts quickly with Bootstrap grid, utilities, components, and theming.
Lessons
Build flexible layouts with d-flex, justify, and align classes.
Flex Utilities is easiest to learn by reading the example, changing it, and observing the result.
<div class="d-flex justify-content-between align-items-center p-3 bg-light">
<div>Logo</div>
<div class="d-flex gap-2">
<button class="btn btn-sm btn-outline-primary">Login</button>
<button class="btn btn-sm btn-primary">Sign up</button>
</div>
</div>
<div class="d-flex flex-column flex-md-row gap-3 mt-3">
<div class="flex-fill bg-body-secondary p-3">Sidebar</div>
<div class="flex-fill bg-body-secondary p-3">Content</div>
</div>Practice the Flex Utilities example in a small scratch file, then explain what changed and why.