![]() |
VOOZH | about |
Bootstrap 5 Interactions Text selection helps us to change the way when a user tries to select the content displayed.
Bootstrap 5 Interactions Text selection Classes:
Syntax: The * can be substituted with values like all, auto, and none.
<p class="user-select-*"> ... </p>
Example 1: In this example, we will learn about classes like user-select-all and user-select-auto.
Output:
Example 2: In this example, we will learn about classes likeuser-select-none.
Output:
References: https://getbootstrap.com/docs/5.0/utilities/interactions/#text-selection