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 - Bootstrap Tutorial
From the course: Bootstrap 4 Essential Training
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…
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)
-
-
-
-
-
-