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

Individual flex elements - Bootstrap Tutorial

From the course: Bootstrap 4 Essential Training

Start my 1-month free trial

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…

Contents