is now part of Shuffle™. You can use the editor on this domain, but we encourage you to try Shuffle™ includes templates for Bootstrap, Bulma, Material-UI, and Tailwind CSS.

Bootstrap class: .text-truncate

<p class="text-truncate">truncated text.</p>


truncated text.

Tips 💡

Sass source

/* _text.scss:13 */
.text-truncate { @include text-truncate; }

// Responsive alignment

@each $breakpoint in map-keys($grid-breakpoints) {
  @include media-breakpoint-up($breakpoint) {
    $infix: breakpoint-infix($breakpoint, $grid-breakpoints);

    .text#{$infix}-left   { text-align: left !important; }
    .text#{$infix}-right  { text-align: right !important; }
    .text#{$infix}-center { text-align: center !important; }

Uses variables

Code copied to the clipboard.

Copying failed

/* _text.scss:13 */

More in Bootstrap Text