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.
Custom order - Bootstrap Tutorial
From the course: Bootstrap 4 Essential Training
Custom order
- [Instructor] One of the more advanced ways that you can control layouts is to customize the order of elements. It helps you to reorder the way that columns appear and you can do this at different screen widths. So let's take a look at how you do this. It's actually pretty easy. The formula is to use the keyword order as a class and then specify a break point and then a number between one and 12. Now you can do this not just with columns, but also with other elements. So it's a little bit strange and you need to think of them more as layers where content is going to go. So let's take a look at practical example. Here we have a simple three column layout and we want to change the order of these elements. So what I'm going to do is right here, on this first one, I'm going to say order and then a number. So let's say order three and save that. And you can see that now it goes into sort of the third position here. Normally it should appear as the first one, but it's gone into the third…
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)
-
-
-
-
-
-