From the course: Bootstrap 4 Essential Training
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Sizing utilities - Bootstrap Tutorial
From the course: Bootstrap 4 Essential Training
Sizing utilities
- [Teacher] Let's take a look at another set of utilities for sizing elements. Now these are actually a pretty simple formula although there's quite a few options. In here, you're going to specify one of the dimensions that you want to control and then you can specify an amount. But it gets a little bit strange because not all these apply to everything. So for example, you can specify the width or the height with an amount you can say, for example, w dash 100, that means make the width of this element 100% of the container size or of course, 25 would be 25%, et cetera, et cetera. I'm sort of disappointed there's no 33% because I think I would use that more, but these are the options. There's also the size that you can use of auto here as well so you can set the width of the element to auto. The remainder of the values though can only be used with the 100 value. So for example, you can say viewport width, which means the width of the current device that you're using. Usually that's the…
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
-
-
-
-
-
Layout overview1m 15s
-
Using containers9m 32s
-
Working with rows and columns12m 1s
-
Multiple column classes8m 43s
-
Offset columns2m 42s
-
Nested columns5m 3s
-
Custom order3m 43s
-
Grid alignment options8m 23s
-
Display properties10m 26s
-
Flexbox container options11m 21s
-
Individual flex elements4m 38s
-
Floating elements4m 26s
-
Margin and padding5m 11s
-
Visibility2m 53s
-
Sizing utilities3m 53s
-
Using borders3m 50s
-
-
-
-
-
-
-