Skip to content
Justice Tech School

Aligning Columns

Use align-items-* on a row for vertical alignment and justify-content-* for horizontal. Use .align-self-* on one column.

Example
<div class="row justify-content-center align-items-center" style="height:200px">
  <div class="col-4">Centered</div>
</div>

Exercise

Center horizontally.

justify-content-

Quiz Test

Which class centers columns horizontally?

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