Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
In the old Bootstrap website, the grid used to be in a separate section called Scaffolding. In the new version, this lists in the CSS section. The grid is, overall, a lot simpler. The new grid is responsive, mobile first, and percent-based. What that means, practically, is that instead of assuming a 940 pixel grid, as before, the CSS starts by assuming a mobile layout and then scales everything up. This is not going to look any different in practice, it's just that the approach in the CSS is now completely backwards. Functionally, what you'll notice is that columns now use a different class. So, where as before, you used to use a div with a class of row, or if you were using it fluid grid, you would use a div with a class of row fluid, now all columns are fluid.
So you simply use a class of row for everything. The amount of columns remains the same, but whereas before you used to specify a class as span and then a number, like four or eight, and those columns added to 12. In the new version, those classes have been renamed, and so you have to add a class of col, and then a class of col-lg and then the number. This means that if you upgrade to the new Bootstrap, all of your layouts and columns will break, so be careful and don't just upgrade to the new version without testing things out. Offsetting is the same as before, but you use the new class called col-offset. Nesting, which means putting columns inside other columns, looks pretty similar at first.
In the old version of Bootstrap there used to be two ways of nesting, a fluid way and a static way. The difference was in fluid nesting, the columns inside other columns always added to 12. With static columns, they always added to number of the container. Since everything is fluid now, the columns in other columns always add to the number 12. So that's also important to remember when you're migrating your layouts. There's a couple of other features that you might find interesting, there's a way of reordering columns by using a col-push class, you can see it in this section.
Get unlimited access to all courses for just $25/month.Become a member
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.