Grid Lines and Spanning
Items can start and end on numbered lines with grid-column and grid-row, or span tracks with span.
Example
<style>
.g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px } .g div { background: #1e293b; padding: 8px } .w { grid-column: 1 / span 2; background: #b45309 !important }
</style>
<div class="g"><div class="w">spans 2</div><div>3</div><div>4</div><div>5</div></div>Exercise
Span two columns.
grid-column: span ;
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.