CSS Grid is a two-dimensional layout system in CSS that allows you to build complex and responsive grid-based layouts. Unlike Flexbox, which works in one dimension at a time, Grid lets you define both rows and columns, giving you precise control over how elements are placed in a container.
.grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }