🧭Grid System
Also known as Layout Grid, Design Grid, 12-Column Grid
Hidden rows and columns on a page. They keep things lined up.
Think of it like
It is like the lines in a notebook. They help you write in neat rows.
Example
A news site uses a twelve-column grid. A main story spans eight columns, and a side list spans four.
Why it matters
A grid makes many pages look like one set. It also makes each new page quick to lay out.
Definition
Example code
css
.page {
display: grid;
grid-template-columns: repeat(12, 1fr);
gap: 24px;
}Common mistake
Key takeaways
- 1Hidden lines. Columns, rows, gutters and margins.
- 2Twelve is common. It splits into halves, thirds and quarters.
- 3A guide, not a cage. Break it on purpose only.