Skip to content
Justice Tech School

Text Utilities

Align with text-start, text-center and text-end. Style with fw-bold, fst-italic, text-decoration-none, text-truncate and text-wrap.

Example
<p class="text-center">Centered</p>
<p class="text-end text-muted">Right and muted</p>
<p class="text-truncate" style="max-width:120px">A long line that will be cut</p>

Exercise

Center text.

text-

Quiz Test

What does text-truncate do?

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