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.
Individual flex elements - Bootstrap Tutorial
From the course: Bootstrap 4 Essential Training
Individual flex elements
- [Instructor] Just like we can control a group of elements in Flex by controlling the container, we can also control individual Flex elements. And the way that that works is by using a class called Align Self. Here's the formula. You say align self, and then optionally a break point, and then one of the available alignments. Now these are going to match the alignments of group element. So another thing that you can do in this new version of Bootstrap is to control the order of individual elements, as long as they are being displayed in Flexbox. So, to do that, we can specify a key word of order as the class and then optionally a breakpoint, just like we do with everything else. And then a number from one through 12 to specify the order. So I can say just order this as the first element, or second or third, and then make sure that I put those numbers in every one of my elements, which allows me to control how those elements are ordered. So I could put order three on one, and then…
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)
-
-
-
-
-
-