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.

Offset columns

Offset columns - Bootstrap Tutorial

From the course: Bootstrap 4 Essential Training

Start my 1-month free trial

Offset columns

- [Instructor] Another way to control the grid is to offset columns in order to move their position on the grid. So, let's take a look at how that works. Now, in order to do that we're going to use this format for our class. So, we're going to say offset and then one of the break points and then a number of columns. Now, because it wouldn't make sense to offset something by 12 columns, you can put a number between 1-11. So, let's take a look at what we've got here. We just have two of these sort of columns right now. And just for now they have a regular COL class. If we wanted to though, we could add a col-sm and then specify a number of columns, like four columns. So, what this is doing is creating a couple of columns, right? And because they normally would add up to twelve and we're specifying that they only take up four of the units. It's like we're sort of missing some space here. That's because four plus four is eight and we have four more units on the grid that we could use…

Contents