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.
Visibility - Bootstrap Tutorial
From the course: Bootstrap 4 Essential Training
Visibility
- [Instructor] So it's really common to show or hide content and you can do that easily with Bootstrap using the display classes, plus a couple of other classes that are related to screen readers. So, let's take a look at how that works. Now first of all we have two classes, one called invisible and the other one called visible. They don't really change the display property itself. Invisible of course will make an element not appear on screen, but it will still take up the amount of room that it would normally take up. Whereas visible means that it will be visible, but only to screen readers. So it's a way to force an element to show up with somebody with assistive devices. Now the other way to show or hide elements is simply using the display property, and here's the formula for that. Now we already covered this in the movie on the display property so I'm not going to go over it except to show you that we can make an element disappear by setting the display property to none. So you…
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.
Contents
-
-
-
-
-
(Locked)
Layout overview1m 15s
-
(Locked)
Using containers9m 32s
-
(Locked)
Working with rows and columns12m 1s
-
(Locked)
Multiple column classes8m 43s
-
(Locked)
Offset columns2m 42s
-
Nested columns5m 3s
-
(Locked)
Custom order3m 43s
-
(Locked)
Grid alignment options8m 23s
-
(Locked)
Display properties10m 26s
-
(Locked)
Flexbox container options11m 21s
-
(Locked)
Individual flex elements4m 38s
-
(Locked)
Floating elements4m 26s
-
(Locked)
Margin and padding5m 11s
-
(Locked)
Visibility2m 53s
-
(Locked)
Sizing utilities3m 53s
-
(Locked)
Using borders3m 50s
-
(Locked)
-
-
-
-
-
-