Bootstrap class: .text-capitalize

Do not have time to learn all the Bootstrap classes?

Try drag & drop Bootstrap builder

<p class="text-capitalize">capitalized text.</p>


capitalized text.

Sass source

/* _text.scss:31 */
.text-capitalize { text-transform: capitalize !important; }

// Weight and italics

.font-weight-light  { font-weight: $font-weight-light !important; }
.font-weight-normal { font-weight: $font-weight-normal !important; }
.font-weight-bold   { font-weight: $font-weight-bold !important; }
.font-italic        { font-style: italic !important; }

// Contextual colors

.text-white { color: $white !important; }

@each $color, $value in $theme-colors {
  @include text-emphasis-variant(".text-#{$color}", $value);

Uses variables

Code copied to the clipboard.

Copying failed

/* _text.scss:31 */

More in Bootstrap Text