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

Visibility - Bootstrap Tutorial

From the course: Bootstrap 4 Essential Training

Start my 1-month free trial

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…

Contents