From the course: CSS: Frameworks & Grids

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

What are CSS grids?

What are CSS grids? - CSS Tutorial

From the course: CSS: Frameworks & Grids

Start my 1-month free trial

What are CSS grids?

- [Narrator] If you thought the term CSS framework was a bit murky, just wait until you hear about CSS grids. Generally speaking, a grid system is a collection of styles that allows you to control page layout using columns and rows. They're meant to be project and platform agnostic, which means that you can use the same grid on a variety of projects, be it with WordPress, Laravel, or just good old fashioned vanilla HTML. Containing elements are used to define a row within a layout, and then you apply class attributes to child elements, and then span them over the desired number of columns within that row. The grid system will typically be based on a 12 to 16 column grid. The grid could be fixed, meaning that the columns are based off a maximum set width, or they could be fluid or percentage based. Either way, the grid system will have a collection of styles that will float an element and then tell it how many columns to span. The containing element will then handle clearing the floats…

Contents