To make an element into a grid container, we need to use either the display: grid; or the display: inline-grid; property. The former results in a block-level grid, while the latter leads to an inline-level grid. In the CSS, we use the display: grid; property on the . container element to create a block-level CSS Grid .