CSS Layout: Grid Flashcards
CSS Variables
They allow for values to be assigned to a reusable variable name.
Variables are created and assigned to the :root of the document.
CSS Grid
2-dimensional system, meaning it can handle both columns and rows.
Grid Container
The element on which display: grid is applied.
Grid Item
The children (i.e. direct descendants) of the grid container.
Grid Line
The dividing lines that make up the structure of the grid. They can be either vertical (“column grid lines”) or horizontal (“row grid lines”) and reside on either side of a row or column.
Grid Cell
The space between two adjacent row and two adjacent column grid lines. It’s a single “unit” of the grid.
Grid Track
The space between two adjacent grid lines. You can think of them like the columns or rows of the grid.