is now part of Shuffle™. The new editor includes templates for Bootstrap, Bulma, Material-UI, and Tailwind CSS.
Switch to Shuffle →

Bootstrap class: .text-nowrap

<p class="text-nowrap">No wrap text.</p>

Preview

No wrap text.

Check .text-nowrap in a real project

Click one of the examples listed below to open the Shuffle Visual Editor with the UI library that uses the selected component.

Tips 💡

Sass source

/* _text.scss:12 */
.text-nowrap   { white-space: nowrap !important; }
.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:12 */
$breakpoint
$grid-breakpoints
$breakpoint
$infix:
$breakpoint
$grid-breakpoints
$infix}-left
$infix}-right
$infix}-center

More in Bootstrap Text