Main Content
Article 1
This is some sample content for the first article.
Article 2
This is some sample content for the second article.
Create powerful two-dimensional layouts with CSS Grid
CSS Grid Layout is a two-dimensional layout system designed for the web. It lets you lay out items in rows and columns, and has many features that make building complex layouts straightforward.
This simple property transforms the container into a grid container and all its direct children into grid items.
The grid-template-columns
property defines the number of columns in your grid layout, and it can accept different value types.
The grid-gap
property defines the size of the gap between rows and columns.
The grid-template-areas
property specifies named grid areas, establishing the cells in the grid and assigning them names.
You can place items precisely by referring to line numbers.
The auto-fit
and auto-fill
keywords allow you to create responsive grids without media queries.
CSS Grid can be combined with media queries for responsive layouts.
A common use case for CSS Grid is creating full page layouts.
This is some sample content for the first article.
This is some sample content for the second article.