From the course: Bootstrap 4 Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Text selection - Bootstrap Tutorial
From the course: Bootstrap 4 Essential Training
Text selection
- [Instructor] There's a few classes that change how users interact with the existing text on a website. Now these are tech selection classes, the default is user-select-auto. So that will reset the default behavior of any of the next two classes that I'll show you. There is user-select-all and what that does is when you click on an item, it will automatically select the entire piece of content. And then there's also user-select-none, and that will prevent you from selecting an item with this class in it. Let's take a look at how that works. So here we have a couple of simple paragraphs, and as I mentioned, the default class is called users-select-auto. So this is really meant to reset what you're doing with the project. We can see that by default, I can select any part of either of these two paragraphs right here. But if I change this to user-select-all, then when I save that and I click right here, the entire…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.