Difference between revisions of "CSS Grid"

From Publication Station
Line 1: Line 1:
CSS grid is used to create layouts. This article describes the basic concepts of CSS grid and links to resources with more info on CSS grid.
With CSS there are multiple ways of positioning elements such as `position: absolute` and `display: flex`. CSS grid is a really handy property to position elements on a grid layout.  
 
This article describes the basic concepts of CSS grid and links to resources with more info on CSS grid.


<source lang="html5">
<source lang="html5">

Revision as of 14:34, 2 September 2022

With CSS there are multiple ways of positioning elements such as `position: absolute` and `display: flex`. CSS grid is a really handy property to position elements on a grid layout.

This article describes the basic concepts of CSS grid and links to resources with more info on CSS grid.

<div class="grid-container>
  <div>Grid item 1</div>
  <div>Grid item 2</div>
  <div>Grid item 3</div>
  <div>Grid item 4</div>
  <div>Grid item 5</div>
  <div>Grid item 6</div>
</div>


Resources