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

Bootstrap class: .text-monospace

<p class="text-monospace">This is in monospace</p>

Preview

This is in monospace

Tips 💡

Sass source

/* _text.scss:7 */
.text-monospace { font-family: $font-family-monospace; }

// Alignment

.text-justify  { text-align: justify !important; }
.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:7 */
$font-family-monospace
$breakpoint
$grid-breakpoints
$breakpoint
$infix:
$breakpoint
$grid-breakpoints
$infix}-left
$infix}-right
$infix}-center

More in Bootstrap Text