Bootstrap class: .text-nowrap

Do not have time to learn all the Bootstrap classes?

Try drag & drop Bootstrap builder

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


No wrap text.

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 */

More in Bootstrap Text