Warning: session_start(): open(/var/lib/php/fpm/session/sess_l9u8v9jkv4gso6ih3osln8imeg, O_RDWR) failed: Permission denied (13) in /var/www/tst02/wp-content/plugins/wordpress-social-login/wp-social-login.php on line 64

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/fpm/session) in /var/www/tst02/wp-content/plugins/wordpress-social-login/wp-social-login.php on line 64

Notice: Undefined index: HTTP_REFERER in /var/www/tst02/wp-content/themes/mdbootstrap4/inc/cookie-setter.php on line 8
Text truncation - Bootstrap 5 & Material Design 2.0

Text truncation

Text truncation - Bootstrap 5 & Material Design 2.0

Truncate long strings of text with an ellipsis.


Basic example

For longer content, you can add a .text-truncate class to truncate the text with an ellipsis. Requires display: inline-block or display: block.

Praeterea iter est quasdam res quas ex communi.
Praeterea iter est quasdam res quas ex communi.

          <!-- Block level -->
          <div class="row">
            <div class="col-2 text-truncate">
              Praeterea iter est quasdam res quas ex communi.
            </div>
          </div>

          <!-- Inline level -->
          <span class="d-inline-block text-truncate" style="max-width: 150px;">
            Praeterea iter est quasdam res quas ex communi.
          </span>