Grid template columns
noun
say it: “GRID TEM-plit KOL-umz” /ɡrɪd ˈtɛmplɪt ˈkɒləmz/
The CSS property that sets how many columns a grid has and how wide each one is.
What does grid-template-columns do?
grid-template-columns sets how many columns a grid has and how wide each one is.
.products { display: grid; grid-template-columns: 1fr 1fr 1fr; } /* three equal columns */
In a sentence
- “grid-template-columns: 1fr 1fr 1fr gives three equal columns.”
Level: Journeyman · More CSS terms at this level
Updated