Parallax & CSS Grids
Instructor: Love Babbar
What is CSS Grid ?
A grid is a collection of horizontal and vertical lines creating a pattern against which we can line up our design elements. They help us to create
layouts in which our elements won't jump around or change width as we move from page to page, providing greater consistency on our websites.
• CSS Grid Layout is a two-dimensional layout system for the web.
• It lets you lay content out in rows and columns.
• It has many features that make building complex layouts straightforward.
• A grid will typically have columns, rows, and then gaps between each row and column. The gaps are
commonly referred to as gutters.
Rows, Columns & Gaps
Flexible Grids
Line based Placement:
We now move on from creating a grid to placing things on the grid. Our grid always has lines — these are numbered beginning with 1 and relate to the writing mode
of the document. For example, column line 1 in English (written left-to-right) would be on the left-hand side of the grid and row line 1 at the top, while in Arabic
• grid-column-start
• grid-column-end
• grid-row-start
• grid-row-end
• Shorthand properties: grid-row, grid-column, grid area
Some more Properties