I have a list of items with three rows. I want to separate the first and second row with borders, so I added a right border to those items but excluded the third row from having borders.
.test-row {
display: grid;
grid-template-rows: 1fr 1fr 1fr;
grid-auto-flow: column;
}
.test-row-item {
padding-bottom: 3.2rem;
border-right-color: #2C327A;
border-right-width: 1px;
border-right-style: solid;
}
<div class="test-row">
<div class="test-row-item">
1
</div>
<div class="test-row-item">
2
</div>
<div class="test-row-item">
3
</div>
<div class="test-row-item">
4
</div>
<div class="test-row-item">
5
</div>
<div class="test-row-item">
6
</div>
<div class="test-row-item">
7
</div>
<div class="test-row-item">
8
</div>
<div class="test-row-item">
9
</div>
</div>