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

Custom order - Bootstrap Tutorial

From the course: Bootstrap 4 Essential Training

Start my 1-month free trial

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…

Contents