Lesson 27 of 50
cssCSS Grid – Fundamentals
15 mins
Course progress54%
What you'll learn
Keep these ideas in mind as you work through the lesson.
Lesson 27 of 50
css15 mins
Keep these ideas in mind as you work through the lesson.
CSS Grid provides a two‑dimensional layout system.
display:grid;.grid-template-columns: repeat(12, 1fr);.grid-column, grid-row or shortcut grid-area.grid-gap / column-gap / row-gap..container {
display:grid;
grid-template-columns: repeat(12, 1fr);
gap:1rem;
}
.sidebar { grid-column:1 / span 3; }
.main { grid-column:4 / span 9; }