1️⃣ What is CSS Grid?

CSS Grid is a powerful two-dimensional layout system for the web. It lets you design web pages using rows and columns — unlike Flexbox, which works mainly in one direction (row or column).

Grid allows you to:


2️⃣ The display: grid Property (Core Concept)

.container {
display: grid;
}

3️⃣ Defining Grid Structure: grid-template-columns and grid-template-rows

.container {
grid-template-columns:100px 200px 1fr;
grid-template-rows: 50px 100px;
}