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.

Using containers

Using containers - Bootstrap Tutorial

From the course: Bootstrap 4 Essential Training

Start my 1-month free trial

Using containers

- [Instructor] One of the reasons people use Bootstrap is to be able to lay out content that's responsive. The main way that you do that is with a class called container, so we'll take a look at containers in this video and then go deeper into rows and columns in the next video. The grid itself is a responsive, 12-column system for creating just about any layout that you can think of. You start out with some sort of element that has some content. You can take that element and add a container class to it if you want it to align to certain breakpoints, and then, you can also break that container up into rows and columns with the rows and column class. In those containers, you can divide things in up to 12 columns. The spacing is divided into up to 12, but it can be less than that if you want to. Bootstrap uses a technology called Flexbox, which makes it easier to write some of this code. In order to learn the grid, you're going…

Contents